WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridSelectionChangedEventArgs

    Show / Hide Table of Contents

    Class GridSelectionChangedEventArgs

    Provides data about the SelectionChanged event.

    Inheritance
    System.Object
    SyncfusionRoutedEventArgs
    GridSelectionChangedEventArgs
    Inherited Members
    SyncfusionRoutedEventArgs.ToString()
    Namespace: Syncfusion.Windows.Controls.Grid
    Assembly: Syncfusion.Grid.Wpf.dll
    Syntax
    public sealed class GridSelectionChangedEventArgs : SyncfusionRoutedEventArgs
    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)

    Initalizes a new object.

    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

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

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

    Range

    The range of cells to be selected.

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

    Reason

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

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

    See Also

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