RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBGridColumns.RebuildColumns Method

Deletes existing columns and generates new columns from the dataset associated with the grid.

Pascal
procedure RebuildColumns;
C++
__fastcall RebuildColumns();

RebuildColumns initializes the TDBGridColumns object by deleting all existing columns, then creating new ones from the grid's associated dataset. If the grid is not connected to a dataset, RebuildColumns simply deletes any existing columns. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!