From RAD Studio API Documentation
Jump to: navigation, search


property DisplayWidth: Integer read GetDisplayWidth write SetDisplayWidth stored IsDisplayWidthStored;


__property int DisplayWidth = {read=GetDisplayWidth, write=SetDisplayWidth, stored=IsDisplayWidthStored, nodefault};


Type Visibility Source Unit Parent
property published
Data.DB TField


Specifies the number of characters that should be used to display a field's value by a cooperating data-aware control.

Set DisplayWidth to control how many characters are used to calculate the column width for the field when it is displayed by a TDBLookupListBox object or a descendant of TCustomDBGrid. The width of columns is determined by the average character width. If the data-aware control that displays the field is not using a fixed pitch font, DisplayWidth may indicate more or fewer characters than will fit in the column for any given string.

Note: The DisplayWidth property has no effect if there is an explicit Columns value for the field in a TDBGrid object.

See Also