menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridQueryDragColumnHeaderEventArgs - WPF 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
    SyncfusionRoutedEventArgs
    GridQueryDragColumnHeaderEventArgs
    GridDataQueryDragColumnHeaderEventArgs
    Inherited Members
    SyncfusionRoutedEventArgs.ToString()
    Namespace: Syncfusion.Windows.Controls.Grid
    Assembly: Syncfusion.Grid.Wpf.dll
    Syntax
    public class GridQueryDragColumnHeaderEventArgs : SyncfusionRoutedEventArgs
    Remarks

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

    Constructors

    GridQueryDragColumnHeaderEventArgs(Int32, Int32, GridQueryDragColumnHeaderReason, RoutedEvent, Object)

    Initializes the event args.

    Declaration
    public GridQueryDragColumnHeaderEventArgs(int column, int insertBeforeColumn, GridQueryDragColumnHeaderReason reason, RoutedEvent routedEvent, object source)
    Parameters
    Type Name Description
    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).

    System.Windows.RoutedEvent routedEvent
    System.Object source

    Properties

    AllowDrag

    Set 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

    Column Name. You can call TableDescriptor.Columns[Column] to get the GridColumnDescriptor.

    Declaration
    [TraceProperty(true)]
    public int Column { get; }
    Property Value
    Type
    System.Int32

    InsertBeforeColumn

    Name of the column to insert at. You can call TableDescriptor.Columns[InsertBeforeColumn] to get the GridColumnDescriptor.

    Declaration
    [TraceProperty(true)]
    public int InsertBeforeColumn { get; set; }
    Property Value
    Type
    System.Int32

    Reason

    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