How to force DataGridView to requery?

  • Thread starter Thread starter Guest
  • Start date Start date
Hi,

The datagridview control only displays the data. You need to have a
datasource requery the database.

Ken
 
Using a dataset and dataadapter:

dsMyDataSet.clear()
daMyDataAdapter.Fill(dsMyDataSet.MyTable)

That will update the datagrid's displayed data from the latest data in the
table. That will work for any databound object.


Troy
 
Back
Top