CGXGridCore::IsCurrentCell

BOOL IsCurrentCell(ROWCOL nRow = GX_INVALID, ROWCOL nCol = GX_INVALID, BOOL bIgnorePrint = FALSE);

nRow

Specifies the row id. If you pass GX_INVALID the row id will not be checked, only the column id.

nCol

Specifies the column id. If you pass GX_INVALID the column id will not be checked, only the row id. If nCol and nRow are GX_INVALID, any cell in the table is possible.

bIgnorePrint

Specifies if the method can return TRUE despite the fact that in printing-mode no current cell is selected.

Return Value

TRUE if a current cell is selected or is the specified cell; it is FALSE if no current cell is selected or if it is not the specified cell.

Remarks

IsCurrentCell determines if a current cell is selected or is the specified cell.

  • two possibilites when calling this method:

  • BOOL b = IsCurrentCell( ) simply determines if a current cell is selected.

  • BOOL b = IsCurrentCell(nRow, nCol) determines if the current cell is positioned at the given coordinate, row or column.

CGXGridCore

 Class Overview |  Class Members