|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to force DataGridView to requery?How do you for the datagridview control to requery the database??
Thanks, --max Hi,
The datagridview control only displays the data. You need to have a datasource requery the database. Ken --------- Show quoteHide quote "Max" <M**@discussions.microsoft.com> wrote in message news:BF15E970-9527-4A03-A327-CAA1EE809F93@microsoft.com... > How do you for the datagridview control to requery the database?? > > Thanks, > --max 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 Show quoteHide quote "Max" <M**@discussions.microsoft.com> wrote in message news:BF15E970-9527-4A03-A327-CAA1EE809F93@microsoft.com... > How do you for the datagridview control to requery the database?? > > Thanks, > --max |
|||||||||||||||||||||||