Refreshing a DataGridView with live data
Posted by: Clay Goss
Date: August 02, 2013 08:32AM

I have a C#.NET DataGridView in a form that displays rows for editing. The user leaves the form up and goes away for a few. When they come back, I would like to have the form updated with any data changed by another user. I would also like to have data entry to the grid to trigger the same update.

I have tried using the binding source object, calling <DataGridView object ref>.ResetBindings(); and .Refresh(); I have tried re-fetching the data into the DataSource object and re-associating its table to the DataGridView object.

I am missing something. A link to an example of how-to would be much appreciated.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.