[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 312

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 TDBGrid.OptionsExtra to disable the automatic columns feature in the grid control.

See also

#lcl.DBGrids.TDBGrid.RemoveAutomaticColumns

#lcl.DBGrids.TDBGridColumns.Add

  

Add creates and stores a new item in the collection

The latest version of this document can be found at lazarus-ccr.sourceforge.net.