Results 1 to 6 of 6

Thread: [2005] Loading data on datagridview

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    274

    [2005] Loading data on datagridview

    VB Code:
    1. Dim dbReader As OleDbDataReader = dbCommand.ExecuteReader
    2.              ComboBox1.Items.Clear()
    3.  
    4.             While (dbReader.Read)
    5.              ComboBox1.Items.Add(dbReader("PatientID"))
    6.  
    7.              End While

    I am using this code to load the combobox with all PatientID on a certain table of my access database.It was doing fine and now want to load the data in a datagridview.how can I possibly do this?One more thing, what if I also want to load the Name("PatientName") in the grid along with its ID?thanks in advance....
    Last edited by aldrean; Jun 22nd, 2006 at 08:55 PM. Reason: typo error

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width