Class GridQueryDragColumnHeaderEventArgs
Holds a reference to a GridControlBase that initiates the event and the column that is affected.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public sealed class GridQueryDragColumnHeaderEventArgs : SyncfusionEventArgs
Remarks
Constructors
GridQueryDragColumnHeaderEventArgs(GridControlBase, Int32, Int32, GridQueryDragColumnHeaderReason)
Initializes the new instance for the GridQueryDragColumnHeaderEventArgs event args.
Declaration
public GridQueryDragColumnHeaderEventArgs(GridControlBase grid, int column, int insertBeforeColumn, GridQueryDragColumnHeaderReason reason)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The table control. |
System.Int32 | column | Column Name. |
System.Int32 | insertBeforeColumn | Name of the column to insert at. You can call TableDescriptor.Columns[InsertBeforeColumn] to get the GridColumnDescriptor. |
GridQueryDragColumnHeaderReason | reason | Reason why this event was raised (Show Red Indicator, MouseUp, or HitTest). |
Properties
AllowDrag
Gets or sets a value indicating whether to allow drag. AllowDrag to False if you do not want to allow the user to drag the specified Column.
Declaration
[TraceProperty(true)]
public bool AllowDrag { get; set; }
Property Value
Type |
---|
System.Boolean |
Column
Gets Column Name. You can call TableDescriptor.Columns[Column] to get the GridColumnDescriptor.
Declaration
[TraceProperty(true)]
public int Column { get; }
Property Value
Type |
---|
System.Int32 |
Grid
Gets the table control.
Declaration
[TraceProperty(true)]
public GridControlBase Grid { get; }
Property Value
Type |
---|
GridControlBase |
InsertBeforeColumn
Gets Name of the column to insert at. You can call TableDescriptor.Columns[InsertBeforeColumn] to get the GridColumnDescriptor.
Declaration
[TraceProperty(true)]
public int InsertBeforeColumn { get; }
Property Value
Type |
---|
System.Int32 |
Reason
Gets or sets reason why this event was raised (Show Red Indicator, MouseUp, or HitTest).
Declaration
[TraceProperty(true)]
public GridQueryDragColumnHeaderReason Reason { get; set; }
Property Value
Type |
---|
GridQueryDragColumnHeaderReason |