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

In This Topic
    ColumnReordering Event
    In This Topic
    Occurs before a move column operation is committed. The move operation can be started by the user when it drops a column header in a new position or when MoveColumn method is called.
    Syntax
    'Declaration
     
    
    Public Event ColumnReordering As EventHandler(Of DataGridColumnReorderingEventArgs)
    public event EventHandler<DataGridColumnReorderingEventArgs> ColumnReordering
    Event Data

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

    PropertyDescription
    Gets or sets a value indicating whether the event is canceled.  
    Gets the reordering column.  
    Gets or sets the target index of the column.  
    Remarks
    The move operation can be cancelled by setting DataGridColumnReorderingEventArgs.Cancel property of the event arguments to true;
    See Also