Objective Grid: What is the best way to remove all rows for the entire grid?

Article ID: 676
Last updated: 11 Apr, 2018
Article ID: 676
Last updated: 11 Apr, 2018
Revision: 3
Views: 1830
Posted: 12 Jan, 2001
by Meltreger B.
Updated: 11 Apr, 2018
by Meltreger B.

Problem


What's the best way to remove all rows for the entire grid?


Cause



Action


Simply call
 

SetRowCount(0);

or
 

RemoveRows(1, GetRowCount());

Note that this will generate Undo information, so you may want to sandwich the calls with:
 

GetParam()->EnableUndo(FALSE);
GetParam()->EnableUndoe(TRUE);

and/or also empty the undo buffer with
 

GetParam()->EmptyUndoList();
GetParam()->EmptyRedoList();


 

This article was:   Helpful | Not helpful
Report an issue
Article ID: 676
Last updated: 11 Apr, 2018
Revision: 3
Views: 1830
Posted: 12 Jan, 2001 by Meltreger B.
Updated: 11 Apr, 2018 by Meltreger B.

Others in this category