Objective Grid: What is the fastest way to clear cell contents out of the grid?

Article ID: 68
Last updated: 16 Apr, 2018
Article ID: 68
Last updated: 16 Apr, 2018
Revision: 3
Views: 1800
Posted: 19 Jan, 2001
by Meltreger B.
Updated: 16 Apr, 2018
by Meltreger B.

Problem


What is the fastest way to 'clear' cell contents out of the grid?


Cause



Action


You can call
 

CGXRangeList rangeList;
rangeList.AddTail(new CGXRange(1, 1, nRows, nCols));
ClearCells(rangeList, TRUE);

This will remove any attributes for the cells.

If you only want to make the values empty, you can call
 

ClearCells(rangeList, FALSE);


 

This article was:   Helpful | Not helpful
Report an issue
Article ID: 68
Last updated: 16 Apr, 2018
Revision: 3
Views: 1800
Posted: 19 Jan, 2001 by Meltreger B.
Updated: 16 Apr, 2018 by Meltreger B.

Others in this category