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

# TCustomDBGrid.RemoveAutomaticColumns

Removes automatic columns added to the grid control.

## Declaration

Source position: dbgrids.pas line 498

`protected procedure TCustomDBGrid.RemoveAutomaticColumns;`

## Description

RemoveAutomaticColumns is a procedure used to remove automatic columns added to the grid control in the AddAutomaticColumns method. Automatic columns are generated at run-time when the value dgeAutoColumns is included in the OptionsExtra property. The feature cannot be enabled at design-time. No actions are performed in the method at design-time.

RemoveAutomaticColumns uses the Columns property to execute its RemoveAutoColumns method which removes the automatic columns in the collection.

RemoveAutomaticColumns is used in the implementation of the LinkActive and the SetExtraOptions methods.

Use the OptionsExtra property to control adding and removing automatic columns at run-time.