Click or drag to resize
GridControlIsCurrentCell Method (UInt32, UInt32, Boolean)
Determines if a current cell is selected or is the specified cell.

Namespace: Stingray.Grid
Assembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax
public bool IsCurrentCell(
	uint row,
	uint col,
	bool ignorePrint
)

Parameters

row
Type: SystemUInt32
Specifies the row index. If Invalid, the row index is not checked, only the column index in col.
col
Type: SystemUInt32
Specifies the column index. If Invalid, the column index is not checked, only the row index in row
ignorePrint
Type: SystemBoolean
Specifies that the method can return true despite the fact that in printing-mode, no current cell is selected.

Return Value

Type: Boolean
true if a current cell is selected or is the specified cell. Otherwise, false if no current cell is selected or if it is not the specified cell.
Remarks
This method returns false if no current cell is selected or if it is not the specified cell.
If both row and col are set to Invalid this method returns true if there is a current cell, no matter where.
See Also