How to force DataGridView to requery?

K

Ken Tucker [MVP]

Hi,

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

Ken
 
S

Simmo

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top