ComponentOne DataGrid for WPF and Silverlight
CancelingEdit Event (C1DataGrid)

C1.Silverlight.DataGrid Namespace > C1DataGrid Class : CancelingEdit Event
Occurs before a cell change is canceled.
Syntax
'Declaration
 
Public Event CancelingEdit As System.EventHandler(Of DataGridEndingEditEventArgs)
public event System.EventHandler<DataGridEndingEditEventArgs> CancelingEdit
Event Data

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

PropertyDescription
Gets or sets a value indicating whether the event is canceled.  
Gets the column corresponding to the editing cell.  
Gets the editing System.Windows.FrameworkElement.  
Gets the row corresponding to the editing cell.  
Remarks
This event typically occurs when the user press escape in an editing cell. You can cancel the event setting DataGridEndingEditEventArgs.Cancel to true.
See Also