Skip to main content
A newer version of this page is available. .

GridControl.RowCanceled Event

Occurs when the changes made in a row are discarded.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v22.1.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.
RowHandle Gets the processed row’s handle.
Source Gets the GridControl that raised this event.

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 IEditableObject interface, you can discard changes only in the focused cell.

See Also