ComponentOne DataGrid for WPF and Silverlight
C1.WPF.DataGrid Namespace / C1DataGrid Class / CancelingRowEdit Event

In This Topic
    CancelingRowEdit Event
    In This Topic
    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 EventHandler(Of DataGridEditingRowEventArgs)
    public event 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