menu

WinForms

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

    Show / Hide Table of Contents

    Class GridSelectionChangedEventArgs

    Provides data about the SelectionChanged event.

    Inheritance
    System.Object
    System.EventArgs
    SyncfusionEventArgs
    GridSelectionChangedEventArgs
    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 GridSelectionChangedEventArgs : SyncfusionEventArgs
    Remarks

    The GridSelectionChangedEventArgs is a custom event argument class used by the SelectionChanged event when the model in the process of selecting a range of cells as a result of a SelectRange(GridRangeInfo, Boolean) method call.

    The GridModel will raise a SelectionChanging event before it updates its internal data structures and a SelectionChanged event afterwards. A GridControlBase grid listens to this event and outlines the selected range of cells.

    Constructors

    GridSelectionChangedEventArgs(GridRangeInfo, GridRangeInfoList, GridSelectionReason)

    Initializes the new instances of the GridSelectionChangedEventArgs class.

    Declaration
    public GridSelectionChangedEventArgs(GridRangeInfo range, GridRangeInfoList oldRanges, GridSelectionReason reason)
    Parameters
    Type Name Description
    GridRangeInfo range

    The range of cells to be selected.

    GridRangeInfoList oldRanges

    A GridRangeInfoList that holds all selected ranges before this user action.

    GridSelectionReason reason

    The origin source for this event (mouse, keyboard, or programmatic).

    Properties

    OldRanges

    Gets a GridRangeInfoList that holds all selected ranges before this user action.

    Declaration
    [TraceProperty(true)]
    public GridRangeInfoList OldRanges { get; }
    Property Value
    Type
    GridRangeInfoList

    Range

    Gets the range of cells to be selected.

    Declaration
    [TraceProperty(true)]
    public GridRangeInfo Range { get; }
    Property Value
    Type
    GridRangeInfo

    Reason

    Gets the origin source for this event (mouse, keyboard, or programmatic).

    Declaration
    [TraceProperty(true)]
    public GridSelectionReason Reason { get; }
    Property Value
    Type
    GridSelectionReason

    See Also

    GridSelectionChangedEventHandler
    SelectionChanged
    GridSelectionChangingEventArgs
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved