Class SelectedCellInfo
Represents a class that maintains the information about a selected cell.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Interactivity
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class SelectedCellInfo : IEquatable<SelectedCellInfo>
Constructors
SelectedCellInfo(GridColumn, Boolean, Int32)
Initializes a new instance of the SelectedCellInfo class.
Declaration
public SelectedCellInfo(GridColumn column, bool isFilterRow, int rowIndex)
Parameters
Type | Name | Description |
---|---|---|
GridColumn | column | The grid column of the cell. |
System.Boolean | isFilterRow | The value indicating whether the cell exists in filter row. |
System.Int32 | rowIndex | The row index of the cell. |
SelectedCellInfo(GridColumn, Int32, GridUnboundRow)
Initializes a new instance of the SelectedCellInfo class.
Declaration
public SelectedCellInfo(GridColumn column, int rowIndex, GridUnboundRow unboundRow)
Parameters
Type | Name | Description |
---|---|---|
GridColumn | column | The grid column of the cell. |
System.Int32 | rowIndex | The row index of the cell. |
GridUnboundRow | unboundRow | The unbound row in which the cell exists. |
SelectedCellInfo(GridColumn, Int32, Boolean)
Initializes a new instance of the SelectedCellInfo class.
Declaration
public SelectedCellInfo(GridColumn column, int rowIndex, bool isAddNewRow)
Parameters
Type | Name | Description |
---|---|---|
GridColumn | column | The grid column of the cell. |
System.Int32 | rowIndex | The row index of the cell. |
System.Boolean | isAddNewRow | The value indicating whether the cell exists in AddNewRow. |
SelectedCellInfo(GridColumn, Object, NodeEntry, Int32, Boolean)
Initializes a new instance of the SelectedCellInfo class.
Declaration
public SelectedCellInfo(GridColumn column, object rowData, NodeEntry nodeEntry, int rowIndex, bool isAddNewRow = false)
Parameters
Type | Name | Description |
---|---|---|
GridColumn | column | The grid column of the cell. |
System.Object | rowData | The row data object of the cell. |
NodeEntry | nodeEntry | The node entry of the cell. |
System.Int32 | rowIndex | The row index of the cell. |
System.Boolean | isAddNewRow | The value indicating whether the cell exists in AddNewRow. |
Properties
Column
Gets the column that contains the selected cell.
Declaration
public GridColumn Column { get; }
Property Value
Type |
---|
GridColumn |
IsAddNewRow
Gets a value indicating whether the cell exists in AddNewRow.
Declaration
public bool IsAddNewRow { get; }
Property Value
Type |
---|
System.Boolean |
IsCaptionSummaryRow
Gets a value indicating whether the cells exists in caption summary row.
Declaration
public bool IsCaptionSummaryRow { get; }
Property Value
Type |
---|
System.Boolean |
IsDataRow
Gets a value indicating whether the cell is in a data row.
Declaration
public bool IsDataRow { get; }
Property Value
Type |
---|
System.Boolean |
IsFilterRow
Gets a value indicating whether the cell exists in Filter row.
Declaration
public bool IsFilterRow { get; }
Property Value
Type |
---|
System.Boolean |
IsGroupSummaryRow
Gets a value indicating whether the cells exists in group summary row.
Declaration
public bool IsGroupSummaryRow { get; }
Property Value
Type |
---|
System.Boolean |
IsUnboundRow
Gets a value indicating whether the cell exists in unbound row.
Declaration
public bool IsUnboundRow { get; }
Property Value
Type |
---|
System.Boolean |
RowData
Gets the data item of the corresponding selected cell.
Declaration
public object RowData { get; }
Property Value
Type |
---|
System.Object |
RowIndex
Gets a value indicating the row index of the cell.
Declaration
public int RowIndex { get; }
Property Value
Type |
---|
System.Int32 |
UnboundRow
Gets the unbound row of the cell.
Declaration
public GridUnboundRow UnboundRow { get; }
Property Value
Type |
---|
GridUnboundRow |
Methods
Equals(SelectedCellInfo)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(SelectedCellInfo other)
Parameters
Type | Name | Description |
---|---|---|
SelectedCellInfo | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the specified object is equal to the current object. Otherwise false. |
GetHashCode()
Overriden to provide the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Returns the hash code for the current object. |