menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridQueryDragColumnHeaderEventArgs - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridQueryDragColumnHeaderEventArgs

    Holds a reference to a GridControlBase that initiates the event and the column that is affected.

    Inheritance
    System.Object
    System.EventArgs
    SyncfusionEventArgs
    GridQueryDragColumnHeaderEventArgs
    Inherited Members
    SyncfusionEventArgs.ToString()
    System.EventArgs.Empty
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public sealed class GridQueryDragColumnHeaderEventArgs : SyncfusionEventArgs
    Remarks

    Set AllowDrag to False if you do not want to allow the user to drag the specified Column.

    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved