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

In This Topic
    CancelingEdit Event
    In This Topic
    Occurs before a cell change is canceled.
    Syntax
    'Declaration
     
    
    Public Event CancelingEdit As EventHandler(Of DataGridEndingEditEventArgs)
    public event 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