ComponentOne DataGrid for WPF and Silverlight
CancelingRowEdit Event (C1DataGrid)

C1.WPF.DataGrid Namespace > C1DataGrid Class : CancelingRowEdit Event
Occurs before a row editing is canceled. A row editing is cancelled when the user press escape. Notice that whether escape is pressed on an editing cell the action will cancel the editing of the cell, if escape is pressed again the changes in the whole row will be reverted.
Syntax
'Declaration
 
Public Event CancelingRowEdit As System.EventHandler(Of DataGridEditingRowEventArgs)
public event System.EventHandler<DataGridEditingRowEventArgs> CancelingRowEdit
Event Data

The event handler receives an argument of type DataGridEditingRowEventArgs containing data related to this event. The following DataGridEditingRowEventArgs properties provide information specific to this event.

PropertyDescription
Gets or sets a value indicating whether this DataGridEditingRowEventArgs is canceled.  
Gets the row. (Inherited from C1.WPF.DataGrid.DataGridRowEventArgs)
Remarks
You can cancel the event setting DataGridEditingRowEventArgs.Cancel to true.
See Also