VB Code:
Dim dbReader As OleDbDataReader = dbCommand.ExecuteReader ComboBox1.Items.Clear() While (dbReader.Read) ComboBox1.Items.Add(dbReader("PatientID")) 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....




Reply With Quote