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, 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 |
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. |
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 |