Class SelectedCellInfo
Represents a class that contains the information about a particular cell in SfDataGrid.
Implements
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class SelectedCellInfo : IEquatable<SelectedCellInfo>
Constructors
SelectedCellInfo(DataGridColumn, int, DataGridUnboundRow)
Initializes a new instance of the SelectedCellInfo class for UnBoundRow.
Declaration
public SelectedCellInfo(DataGridColumn column, int rowIndex, DataGridUnboundRow unBoundRow)
Parameters
| Type | Name | Description |
|---|---|---|
| DataGridColumn | column | |
| int | rowIndex | |
| DataGridUnboundRow | unBoundRow |
SelectedCellInfo(DataGridColumn, int, bool, bool)
Declaration
public SelectedCellInfo(DataGridColumn column, int rowIndex, bool isAddnewrow, bool isFilterRow)
Parameters
| Type | Name | Description |
|---|---|---|
| DataGridColumn | column | |
| int | rowIndex | |
| bool | isAddnewrow | |
| bool | isFilterRow |
SelectedCellInfo(DataGridColumn, object, NodeEntry, int)
Initializes a new instance of the SelectedCellInfo class for data row.
Declaration
public SelectedCellInfo(DataGridColumn column, object rowData, NodeEntry nodeEntry, int rowIndex = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| DataGridColumn | column | |
| object | rowData | |
| NodeEntry | nodeEntry | |
| int | rowIndex |
Properties
Column
Gets the DataGridColumn that contains the selected cell.
Declaration
public DataGridColumn? Column { get; }
Property Value
| Type |
|---|
| DataGridColumn |
GridUnboundRowInfo
Gets a DataGridUnboundRow information of the selected unbound row cell.
Declaration
public DataGridUnboundRow? GridUnboundRowInfo { get; }
Property Value
| Type |
|---|
| DataGridUnboundRow |
IsAddNewRow
Declaration
public bool IsAddNewRow { get; set; }
Property Value
| Type |
|---|
| bool |
IsDataRow
Gets a value indicating whether the selected cell is of a data row.
Declaration
public bool IsDataRow { get; }
Property Value
| Type | Description |
|---|---|
| bool | true if the selected cell is of a data row; otherwise, false. |
IsFilterRow
Gets a value indicating whether the selected cell is of a filter row.
Declaration
public bool IsFilterRow { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | true if the selected cell is of a filter row; otherwise, false. |
IsUnBoundRow
Gets a value indicating whether the selected cell is of an unbound row.
Declaration
public bool IsUnBoundRow { get; }
Property Value
| Type |
|---|
| bool |
RowData
Gets the underlying data object of the row that contains the selected cell.
Declaration
public object? RowData { get; }
Property Value
| Type |
|---|
| object |
RowIndex
Gets the corresponding row index of the selected cell.
Declaration
public int RowIndex { get; }
Property Value
| Type |
|---|
| int |
Methods
Equals(SelectedCellInfo?)
Compares whether the current cell info is equal to other cell info of the same type.
Declaration
public bool Equals(SelectedCellInfo? other)
Parameters
| Type | Name | Description |
|---|---|---|
| SelectedCellInfo | other |
Returns
| Type |
|---|
| bool |
GetHashCode()
Returns the hash code for the SelectedCellInfo instance.
Declaration
public override int GetHashCode()
Returns
| Type |
|---|
| int |