Class GridSelectionChangedEventArgs
Provides data about the SelectionChanged event.
Inherited Members
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 |