Class SelectedCellInfo
Represents a class that contains the information about a particular cell in SfDataGrid.
Inheritance
Implements
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class SelectedCellInfo : Object, IEquatable<SelectedCellInfo>
Constructors
SelectedCellInfo(DataGridColumn, Int32, 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 | |
| System.Int32 | rowIndex | |
| DataGridUnboundRow | unBoundRow |
SelectedCellInfo(DataGridColumn, Int32, Boolean, Boolean)
Declaration
public SelectedCellInfo(DataGridColumn column, int rowIndex, bool isAddnewrow, bool isFilterRow)
Parameters
| Type | Name | Description |
|---|---|---|
| DataGridColumn | column | |
| System.Int32 | rowIndex | |
| System.Boolean | isAddnewrow | |
| System.Boolean | isFilterRow |
SelectedCellInfo(DataGridColumn, Object, NodeEntry, Int32)
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 | |
| System.Object | rowData | |
| NodeEntry | nodeEntry | |
| System.Int32 | 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 |
|---|
| System.Boolean |
IsDataRow
Gets a value indicating whether the selected cell is of a data row.
Declaration
public bool IsDataRow { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | 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 |
|---|---|
| System.Boolean | 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 |
|---|
| System.Boolean |
RowData
Gets the underlying data object of the row that contains the selected cell.
Declaration
public object RowData { get; }
Property Value
| Type |
|---|
| System.Object |
RowIndex
Gets the corresponding row index of the selected cell.
Declaration
public int RowIndex { get; }
Property Value
| Type |
|---|
| System.Int32 |
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 |
|---|
| System.Boolean |
GetHashCode()
Returns the hash code for the SelectedCellInfo instance.
Declaration
public override int GetHashCode()
Returns
| Type |
|---|
| System.Int32 |