By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,552 Members | 905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,552 IT Pros & Developers. It's quick & easy.

How to force DataGridView to requery?

P: n/a
Max
How do you for the datagridview control to requery the database??

Thanks,
--max
Apr 2 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

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

Ken
---------
"Max" <Ma*@discussions.microsoft.com> wrote in message
news:BF**********************************@microsof t.com...
How do you for the datagridview control to requery the database??

Thanks,
--max

Apr 3 '06 #2

P: n/a
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
"Max" <Ma*@discussions.microsoft.com> wrote in message
news:BF**********************************@microsof t.com...
How do you for the datagridview control to requery the database??

Thanks,
--max

Apr 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.