RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.DisplayWidth Property

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

Pascal
property DisplayWidth: Integer;
C++
__property int DisplayWidth;

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.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!