Show: Delphi C++
Display Preferences

Restoring Default Values to a Column

From RAD Studio
Jump to: navigation, search

Go Up to Creating a Customized Grid


At runtime you can test the AssignedValues property of a column to determine whether a column property has been explicitly assigned. Values that are not explicitly defined are dynamically based on the associated field or the defaults of the grid.

You can undo property changes made to one or more columns. In the Columns editor, select the column or columns to restore, and then select Restore Defaults from the context menu. Restore defaults discards assigned property settings and restores the properties of a column to those derived from its underlying field component

At runtime, you can reset all default properties for a single column by calling the RestoreDefaults method of the columns. You can also reset default properties for all columns in a grid by calling the RestoreDefaults method of the columns list:

 DBGrid1.Columns.RestoreDefaults;

See Also

Personal tools
RAD Studio 10.2 Tokyo
In other languages
Previous Versions
Assistance