RowLeave event happens before CellValueChanged

Mar 24 2007 2:03 PM

Hello everybode,

      I am working in a project using the DataGridView.  And my application saves the data "row by row".  So, in the RowLeave event, I check for the RowState in the DataSource if it is "Added" or "Modified".  But the RowState is changed after detecting the changes of the cell.  i.e. the code in RowLeave event is happened before changing the state of the row.  So, the my code detects that the row is "Unchanged".  And that is wrong.

What can I do to change the RowState before the RowLeave event???

Thank you very much.

Yours,

Mohammed Ramadan
EBS International
Cairo, Egypt
+20161918224