Vcl.DBGrids.TDBGridColumns.RebuildColumns
Delphi
procedure RebuildColumns;
C++
void __fastcall RebuildColumns();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TDBGridColumns |
Description
Deletes existing columns and generates new columns from the dataset associated with the grid.
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.