DataGridView IsCurrentRowDirty

When a cell value is changed in DataGridView, the value for IsCurrentRowDirty shows true in DataGridView_CellValidating event but false in DataGridView_CellEndEdit event. Is this the expected beaviour of DataGridView If someone can shed some light on this topic, it will be very much appreciated.

Thanks!



Answer this question

DataGridView IsCurrentRowDirty

  • DevJ

    This property returns true when the pencil glyph is displayed in the row.

    Before the DataGridView_CellEndEdit is fired, the current row moves to the next row, so the IsCurrentRowDirty is False.



  • DataGridView IsCurrentRowDirty