Class GridRowInfo
Represents a class that implements System.IEquatable<> to store the required informations of a selected row.
Inheritance
Implements
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.Android.dll
Syntax
public class GridRowInfo : Object, IEquatable<GridRowInfo>
Constructors
GridRowInfo(Int32)
Initializes a new instance of the GridRowInfo class using the specified rowIndex.
Declaration
public GridRowInfo(int rowIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The zero-based index of the row. |
GridRowInfo(Int32, Object)
Initializes a new instance of the GridRowInfo class.
Declaration
public GridRowInfo(int rowIndex, object rowData)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The zero-based index of the row. |
System.Object | rowData | The underlying data in the row. |
Properties
IsDataRow
Gets a value indicating whether this object is data row cell.
Declaration
public bool IsDataRow { get; }
Property Value
Type | Description |
---|---|
System.Boolean | True if this object is data row, otherwise false. |
RowData
Gets the data in the particular row.
Declaration
public object RowData { get; }
Property Value
Type | Description |
---|---|
System.Object | The data in the particular row. |
RowIndex
Gets a value indicating the row index of the particular row.
Declaration
public int RowIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The row index of the particular row. |
Methods
Equals(GridRowInfo)
Returns a boolean indicating if the passed GridRowInfo object is Equal to this. Equality is defined as object equality for reference types and bitwise equality for value types using a loader trick to replace Equals with EqualsValue for value types.
Declaration
public bool Equals(GridRowInfo other)
Parameters
Type | Name | Description |
---|---|---|
GridRowInfo | other | A GridRowInfo object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | Returns a boolean indicating if the passed object is Equal to this. |
GetHashCode()
GetHashCode is intended to serve as a hash function for this object. Based on the contents of the object, the hash function will return a suitable value with a relatively random distribution over the various inputs.
The default implementation returns the [....] block index for this instance. Calling it on the same object multiple times will return the same value, so it will technically meet the needs of a hash function, but it's less than ideal. Objects (especially value classes) should override this method.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Return a suitable value with a relatively random distribution over the various inputs based on the contents of the object. |