Column's Basic Properties

See Also    Examples    Applies To

Property FieldName As String

Column.FieldName [= strFieldName]

Returns or sets the Field that is bound to the column.

Property DisplayField As String

Column.DisplayField [= strDisplayField]

Returns or sets the field that is used to display the value of the column. By default this is the same as FieldName, but you may specify an other field.

Property Caption As String

Column.Caption [= strCaption]

Returns or sets the caption of the column.

Property Width As Long

Column.Width [= strWidth]

Returns or sets the width of the column.

You may set the Width property at design time: Rightclick at the atb, choose Edit from the context menu, press the gridview button at the atb and drag the grid's caption boundaries.

You may set the Width to 0 to hide the column.

The Column's Basic Properties are also available via the property page Columns in the designer's interface.

Example

Customer.gif (5370 Byte)

Caption 

Width

Fig. 1: atb control with some columns demonstrating the Caption and Width properties.

PpgColumns.gif (8445 Byte)

Fig. 2: Property page Columns for the atb control of Fig.1