User Profile

Collapse

Profile Sidebar

Collapse
cday119
cday119
Last Activity: Dec 1 '09, 06:37 PM
Joined: Mar 13 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Return all items in an order then add the shipping cost to only one item

    So I am having a difficult time with some clients. The database is set up like this
    Code:
    tblOrder               tblOrder_Item_Bridge              tblItem
    internal_id            item_id                             item_id
    ship_cost             internal_id                         item desc
    item_id                                                    cost
    ...
    See more | Go to post

  • What I ended up doing was saving the dgv to the database, did a sql query on to update the status in the database, then refreshed the datagridview. Thanks for your help man!
    See more | Go to post

    Leave a comment:


  • DataGridView - loop through selected rows, change value of sorted coloumn.

    Hi Everyone,

    So I have a datagridview and it has a column called status. It has 3 values: New, Printed, and Shipped.

    Now a user can select multiple rows and click "set to printed". I then do a foreach loop on datagridview.se lectedrows and change the status to printed. Now the problem is that if the datagridview is sorted by status, when the status is changed from new to printed, that row is moved from being...
    See more | Go to post

  • Get DataGridView.SelectedRows Children Data

    Hi All,

    I have a datagridview, and I'm looping threw the selected rows like so:

    Code:
    For Each row As System.Windows.Forms.DataGridViewRow In OrderDataGridView.SelectedRows
    This DataGridView Holds Order Information and it contains a column called ShippingID, which is used as a foreign key relation to another table(ShippingA ddress) in the DataSet.

    My question is how to I access the related ShippingAddress...
    See more | Go to post

  • cday119
    started a topic SQL Server 2000 XML Element Order

    SQL Server 2000 XML Element Order

    Hey everyone,

    Im trying to create an XML document with specific element order. Here is what I need:
    Code:
    <invoice_shipment>
      <internal_id/>
      <shipping_cost/>
      <items>
        <item_code/>
      </items>
      <order_number>
    </invoice_shipment>
    So I created a SQl query that uses FOR XML EXPLICIT:

    Code:
    SELECT
    ...
    See more | Go to post

  • cday119
    started a topic Modify Dataset when Viewed in DataGrid

    Modify Dataset when Viewed in DataGrid

    Hey

    In my database I have time formatted as a unix timestamp. I put that into a dataset. What is the best way to change those timestamps into a human readable date and time when the dataset is viewed in a datagridview.

    FANK!!!
    Chad
    See more | Go to post

  • cday119
    started a topic XML and VB.net

    XML and VB.net

    I have an XML document formatted like so:

    Code:
    <?xml version="1.0"?>
    <BadgeOrders>
      <Order Ordernum="HOL090122114802" OrderDate="1/22/2009 11:48:02 AM">
        <Contact>
          <PersonOrdering>Test1</PersonOrdering>
          <PhoneNumber>Test Phone</PhoneNumber>
          <FaxNumber></FaxNumber>
          <Email>test1@test</Email>
    ...
    See more | Go to post

  • cday119
    started a topic Accessing GridViewRows Events
    in .NET

    Accessing GridViewRows Events

    Is this possible. I have a datagridview with a checkbox row. Im looking to access the checkchanged event of these checkboxes. Is this possible?

    Thanks
    See more | Go to post

  • cday119
    started a topic Setting Up Delegates in Exhcange

    Setting Up Delegates in Exhcange

    In outlook you can have other users administer your mail and tasks by setting them up as a delegate. Is there a way to administer delegates from Exchange Server. We have SBS 2003 and Outlook 2003.

    Thanks
    See more | Go to post

  • cday119
    started a topic GridView Text Value Mapping - ASP.NET
    in .NET

    GridView Text Value Mapping - ASP.NET

    Hey Everyone,

    I have a SqlDataSource hooked into a gridview. In the database I have a boolean property. It shows up in the gridview as true but I want to say something else. What is the best way to set if row.cell(0).tex t = "True" row.cell(0).tex t = "Finished"

    Kind of like drop down list has a value text mapping.

    Thanks
    See more | Go to post

  • cday119
    replied to Insert Into Access Database - Primary Key
    in .NET
    A datagridview. I have been trying some other things. Here is the newest way that I am doing it. I basically changed the update command of the dataadapter to a insert command.

    Code:
     Dim row As DataRow = dsHardware.Tables("Computers").NewRow
            row("Style") = cmbAddStyle.SelectedItem.Key.ToString
            row("Location") = cmbAddLocation.SelectedItem.key.ToString
    ...
    See more | Go to post

    Leave a comment:


  • cday119
    started a topic Insert Into Access Database - Primary Key
    in .NET

    Insert Into Access Database - Primary Key

    Can someone help me out with this one. I am trying to insert a row of data into an access database. The primary key is set to auto increment. It will work once but the next time you try an insert it says. "The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. " This error occurs on the daComputers.Upd ate(dsHardware, "Computers" ) line...
    See more | Go to post

  • cday119
    replied to DataGridView with multiple table info
    in .NET
    Here is what I did to show rows from multiple tables on one data grid view. Basically:
    Load the dataset with all the data in all the tables
    Add the Relations
    Create a JoinView
    Set the datagridview datasource to the JoinView.

    Here is the code:

    Code:
    
        'We declare data adapters for all the tables so we can update the dataset using dsHardware.Update.  If we do a Join statement,
    ...
    See more | Go to post

    Leave a comment:


  • cday119
    replied to Bound Text box not updating Database
    in .NET
    Alright, that was in the back of my mind but I wasn't quite sure. I'll try it out and tell you what I find.

    Thanks
    See more | Go to post

    Leave a comment:


  • cday119
    started a topic Bound Text box not updating Database
    in .NET

    Bound Text box not updating Database

    I am trying to bind a textbox to a dataset. When I try to use the adapter.update command, nothing in the database update. I feel like I am doing something wrong. Here is my code

    Code:
    'Fill Computers Table
            Using da As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter(My.Settings.ComputersSQL, My.Settings.ConnectionString)
                da.MissingSchemaAction = MissingSchemaAction.AddWithKey
    ...
    See more | Go to post

  • cday119
    replied to DataGridView with multiple table info
    in .NET
    Isn't there a way to add a column to the datagridview that holds the data of another table?
    See more | Go to post

    Leave a comment:


  • cday119
    replied to DataGridView with multiple table info
    in .NET
    Yeah sorry I was focused on the database layout I forgot to mention that I need to edit and update the data. And I would like to use the Adapter.Update command.

    I can add a new row the the datagridview but it doesn't let me set a datasource. I think I can do something like calling the Computers table children, which was created when I added the relation. But I do not know the syntax of this or if I will be able to update the database...
    See more | Go to post

    Leave a comment:


  • cday119
    replied to DataGridView with multiple table info
    in .NET
    But if I update the location that will not reflect on the computers.locat ion cell.
    See more | Go to post

    Leave a comment:


  • cday119
    started a topic DataGridView with multiple table info
    in .NET

    DataGridView with multiple table info

    Here is my basic dilemma

    I have a database with two tables. Computers table and Location Table. The computers table basically looks like this

    ID
    Location
    ...

    Example Rows

    Code:
    ID                       Location
    Computer1          39
    Computer2          21
    The Location table looks like this

    LocationID
    Location...
    See more | Go to post

  • Reference to a non-shared member requires an object reference

    Reference to a non-shared member requires an object reference in the declarations on "Form1.tabSearc h.". Anyone know why this is happening?

    Code:
        Public Function getArgs(ByVal Op As String, ByVal OpeningQuote As String, ByVal ClosingQuote As String, Optional ByVal controls As Windows.Forms.Control.ControlCollection = Form1.tabSearch.Controls) As String
    
            Dim args As String = " "
    ...
    See more | Go to post
No activity results to display
Show More
Working...