Hi people, I am having a bit of trouble coding my Windows form. I have a DataGridView control which retrieves data from an Access database table. I can populate the DGV with all the records in the table using something like
dgv.DataSource = ds.Tables(0)
However my problem is that I do not wish to display all records. I have a combo box that displays all ID numbers in the table and once I click on the combo box I need the data grid view to only display that particular record. I have tried doing something like
dgv.DataSource = ds.Tables(0).Rows(combo.SelectedIndex)
That doesnt work at all however, anyone got any ideas on how I can get this working?
Thanks
dgv.DataSource = ds.Tables(0)
However my problem is that I do not wish to display all records. I have a combo box that displays all ID numbers in the table and once I click on the combo box I need the data grid view to only display that particular record. I have tried doing something like
dgv.DataSource = ds.Tables(0).Rows(combo.SelectedIndex)
That doesnt work at all however, anyone got any ideas on how I can get this working?
Thanks