GridControl.RowCanceled Event
Occurs when the changes made in a row are discarded.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
public event RowEventHandler RowCanceled
#Event Data
The RowCanceled event's data class is RowEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Row | Gets the processed row. |
Row |
Gets the processed row’s handle. |
Source |
Gets the Grid |
#Remarks
You can discard changes made in a row while it is focused. The GridControl updates the data source when the row focus moves to another row.
To discard changes, press ESC
twice. Press ESC
once to close the editor and discard all the changes made in the current cell. Then press ESC
again to call the IEditableObject.CancelEdit method that discards changes made in other cells of the edited row.
The RowCanceled event occurs when you press ESC
the second time. The RowEventArgs.Row and RowEventArgs.RowHandle properties return the processed row and the row’s handle, respectively.
Note
If a data item class does not implement the IEditable