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
Cancel
Gets or sets a value indicating whether to cancel the save action of the cell.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is |
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. |
Cells
Defines the currently selected/deselected cells.
Declaration
public List<DOM> Cells { get; set; }
Property Value
Type |
---|
System.Collections.Generic.List<DOM> |
CurrentCell
Defines the element.
Declaration
public DOM CurrentCell { get; set; }
Property Value
Type |
---|
DOM |
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. |
PreviousRowCell
Defines the previously selected cell element.
Declaration
public DOM PreviousRowCell { get; set; }
Property Value
Type |
---|
DOM |
PreviousRowCellIndex
Defines the previously selected cell index.
Declaration
public int PreviousRowCellIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
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. |