dbailiff

dbailiff

  • NA
  • 13
  • 0

How to detect changes in a DataGrid control

Aug 6 2004 3:56 PM
I simply want to know if any data has changed in a datagrid control. My first thought was to use an event such as DataGrid.Change. There doesn't seem to be any such event or property that I can use to determine if I need to do an update. More background... I'm using a form with a single control, a DataGrid. The DataGrid is bound to a DataView which is created at runtime when the form is created. The DataView comes from a DataTable/DataAdapter. I can have multiple "views" of the same rows of data because each view is attached to its own form. I need to know if any of the data of any row/column in a datagrid has been changed so that I can force an update or at least prompt the user to update when necessary. Why is there no obvious event or property for this?

Answers (2)