<< Return to Main Index

< Return to Class Index

CGXGridCore::FindNextCell

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

direction

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 nSetRow and 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