FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid.Classic Namespace / C1FlexGridClassic Class / AfterDragColumn Event

In This Topic
    AfterDragColumn Event (C1FlexGridClassic)
    In This Topic
    Fires after the user finishes dragging a column.
    Syntax
    'Declaration
     
    
    Public Event AfterDragColumn As DragRowColEventHandler
    public event DragRowColEventHandler AfterDragColumn
    Event Data

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

    PropertyDescription
    Gets or sets a value indicating whether the drag operation should be canceled.  
    Gets the original index of the column that was dragged by the user.  
    Gets the new index of the column or row that was dragged by the user.  
    Gets the original index of the row that was dragged by the user.  
    Remarks

    This event only fires when the user drags a column using the mouse.

    It does not fire when a column is moved using the C1.Win.C1FlexGrid.ColumnCollection.Move method.

    You can prevent specific columns from being dragged by the user by setting their C1.Win.C1FlexGrid.RowCol.AllowDragging property to false.

    See Also