CGXGridCore::Clear

virtual BOOL Clear(BOOL bStyleOrValue = TRUE);

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 selected range of cells.

This method is called from CGXGridCore::ProcessKeys when the user has pressed the DELETE key to clear the specified cells.

The bStyleOrValue setting is passed to ClearCells.

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::ClearCells  CGXGridCore::ProcessKeys

CGXGridCore

 Class Overview |  Class Members