Caption Property (TDBCombo)
For a TDBList or TDBCombo control, this property determines the text displayed in the caption bar at the top of the control.
object.Caption= string
Read/Write at run time and design time.
Property applies to TDBList and TDBCombo controls, Column and Split objects.
For a Column or Split object, this property determines the text displayed in the object's heading area.
Setting the Caption property to an empty string for a control hides its caption bar.
Setting the Caption property to an empty string for a Split object hides the heading area, even if other splits have non-empty captions.
Setting the Caption property to an empty string for a Column object clears the text in the column's heading area but does not hide the heading. Column captions are only displayed if the control's ColumnHeaders property is set to True and the HeadLines property is not set to 0.
The Caption property is limited to 255 characters. Attempting to set the caption to more than 255 characters results in a trappable error.
See Also