CGXGridCore::FindNextCell

virtual BOOL FindNextCell(int direction, ROWCOL& nSetRow, ROWCOL& nSetCol);

direction

  • Direction to move the current cell. Possible directions are:

  • GX_UPmove up

  • GX_LEFTmove left

  • GX_RIGHTmove right

GX_DOWNmove down

nSetRow

A reference to the row-id to receive the nearest possible row for the current cell.

nSetCol

A reference to the column-id to receive the nearest possible column for the current cell.

Return Value

Indicates whether FindNextCell was able to find a cell in the specified direction. TRUE if successful; otherwise FALSE.

Remarks

This advanced method is called by MoveCurrentCell to determine the nearest possible row and column for the current cell in the specified direction.

If the cell specified with nSetRowand nSetCol is available as current cell, these parameters remain unchanged and FindNextCell will return. If the specified cell is disabled or hidden (row-height or column-width is zero), FindNextCell will search the next possible cell which is both enabled and visible.

See Also

 CGXGridCore::MoveCurrentCell

CGXGridCore

 Class Overview |  Class Members