[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'DBGrids' (#lcl)

TDBGridColumns.RemoveAutoColumns

RemoveAutoColumns removes automatic columns in the collection.

Declaration

Source position: dbgrids.pas line 307

protected procedure TDBGridColumns.RemoveAutoColumns;

Description

RemoveAutoColumns is a procedure used to remove any automatic columns in the collection. RemoveAutoColumns uses HasAutomaticColumns to determine if any action is required.

When HasAutomaticColumns returns True the Grid updates its GridStatus to include the value gsRemovingAutoColumns. RemoveAutoColumns calls the Delete method for any column having its IsAutomaticColumn property set to True. gsRemovingAutoColumns is removed from the GridStatus property in the Grid prior to exiting from the method.

Applications do not normally call the RemoveAutoColumns method. Use OptionsExtra in TDBGrid to disable the automatic columns feature for the grid control.

See also

TCustomDBGrid.GridStatus

  

Stores status information about operations active for the grid control.

TCustomDBGrid.OptionsExtra

  

Contains the extra options enabled for the database grid control.


Version 4.0 Generated 2025-05-03 Home