Class CellSelectEventArgs<T>
Provides information about the CellSelected event.
Inherited Members
Namespace: Syncfusion.Blazor.Grids
Assembly: Syncfusion.Blazor.dll
Syntax
public class CellSelectEventArgs<T> : GridEventBaseArgs
Type Parameters
| Name | Description |
|---|---|
| T | TValue of the grid component. |
Constructors
CellSelectEventArgs()
Declaration
public CellSelectEventArgs()
Properties
CellIndex
Gets the cell index for the currently selected cell.
Declaration
public int CellIndex { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The index of the cell that is currently selected. |
CurrentValue
Gets the value of the selected cell.
Declaration
public object CurrentValue { get; }
Property Value
| Type | Description |
|---|---|
| System.Object | Returns the value of the selected cell. |
Remarks
If the Field property is not set for a GridColumn, such as a template column or checkbox column, then the corresponding cell value will be returned as null when selected.
Data
Gets the row data associated with the currently selected cell.
Declaration
public T Data { get; }
Property Value
| Type | Description |
|---|---|
| T | The row data associated with the currently selected cell. |
Event
Gets the Microsoft.AspNetCore.Components.Web.MouseEventArgs of the currently selected cell.
Declaration
public MouseEventArgs Event { get; }
Property Value
| Type |
|---|
| Microsoft.AspNetCore.Components.Web.MouseEventArgs |
IsCtrlPressed
Gets a value indicating whether the CTRL key is currently pressed or not.
Declaration
public bool IsCtrlPressed { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsShiftPressed
Gets a value indicating whether the SHIFT key is currently pressed or not.
Declaration
public bool IsShiftPressed { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
PreviousCellIndex
Gets the previously selected cell index.
Declaration
public int PreviousCellIndex { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | An integer value representing the previously selected cell index. |
PreviousValue
Gets the value of the previously selected cell.
Declaration
public object PreviousValue { get; }
Property Value
| Type | Description |
|---|---|
| System.Object | Returns the previously selected cell value. |
Remarks
If the Field property is not set for a GridColumn, such as a template column or checkbox column, then the corresponding cell value will be returned as null when selected.
RowIndex
Gets the index of the row for the currently selected cell.
Declaration
public int RowIndex { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | An integer representing the row index of the currently selected cell. |