<< Return to Main Index

< Return to Class Index

CGXGridCore::ClearCells

virtual BOOL ClearCells(const CGXRangeList& selList, BOOL bStyleOrValue = TRUE);

selList

A reference to the range list which contains all the range of cells which shall be cleared.

bStyleOrValue

TRUE if you want to clear the whole style information for the cells; FALSE if you only want to empty the displayed value.

Return Value

TRUE if operation was performed successfully; FALSE if user aborted the operation.

Remarks

Clears the contents of each cell in the specified range.

If bStyleOrValue is FALSE, ClearCells will loop through all cells and force the emptying of the cells contents by calling CGXControl::SetControlText(_T(“”)).

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the ImplementClearCells method from within the control factory class' InitializeGridComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method returns FALSE. A warning will be displayed in the debug window.

END Control-Factory Specific

See Also

CGXGridCore::CutRange CGXGridCore::ProcessKeys CGXControl::SetControlText

CGXGridCore

Class Overview | Class Members