Class GridSelectionChangedEventArgs
Provides data about the SelectionChanged event.
Inherited Members
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 |
---|
GridRangeInfoList |
Range
The range of cells to be selected.
Declaration
[TraceProperty(true)]
public GridRangeInfo Range { get; }
Property Value
Type |
---|
GridRangeInfo |
Reason
The origin source for this event (mouse, keyboard, or programmatic).
Declaration
[TraceProperty(true)]
public GridSelectionReason Reason { get; }
Property Value
Type |
---|
GridSelectionReason |