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

How to force DataGridView to update itself in compliance with underlying DataSource ?

P: n/a
I have DataGridView which DataSource is assigned to Table<>
object of DataContext connected to SQL Server database.

But when the underlying SQL Server database is updated
(through ODBC connection) the DataGridView is not updated.

I see that Table<is updated because its Count is changed.

How to force DataGridView to update itself in such situation ?
Oleg Subachev
Nov 6 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a

Oleg Subachev wrote:
I have DataGridView which DataSource is assigned to Table<>
object of DataContext connected to SQL Server database.

But when the underlying SQL Server database is updated
(through ODBC connection) the DataGridView is not updated.

I see that Table<is updated because its Count is changed.

How to force DataGridView to update itself in such situation ?
Oleg Subachev

The table (which maybe a part of dataset) which is being used as the
data source of the DataGridView must be re-filled using the adapter's
Fill command!

When you initially did a fill for the underlying table, that table's
contents got cached in your application and after that you are working
with the cached data.

If there is some other way, I am not aware.
Nov 6 '08 #2

P: n/a
The table (which maybe a part of dataset) which is being used as the data
source of the DataGridView must be re-filled using the adapter's Fill
command!
The problem is that the underlying Table<is updated (its Count has
changed) but the DataGridView is not updated accordingly.
And I can't find out how to update it :-(
Oleg Subachev
Nov 7 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.