CGXGridCore::CanActivateGrid
virtual BOOL CanActivateGrid(BOOL bActivate);
bActivate
TRUE when grid shall be activated; FALSE if grid shall be deactivated.
Return Value
TRUE if grid is in a valid state; FALSE if grid is in an invalid state and, thus, deactivating the grid should be aborted when possible.
Remarks
Called before the grid is deactivated or activated. Checks if the current cell is valid. You may override this method and return FALSE if the grid is in an invalid state and deactivation should be aborted (if this is possible).
The data dialog validation routine DDV_GXGridWnd always calls CanActivateGrid to determine if the grid is in a valid state. If the grid is used in a workbook and the user wants to select another sheet, the CGXTabWnd will also check CanActivateGrid.
See Also
CGXGridCore::OnActivateGrid DDV_GXGridWnd