ComponentOne True DBGrid Pro 8
DataField Property (TDBDropDown)

The DataField property returns or sets the name of the drop-down column used to update the associated grid column when the user selects an item from a TDBDropDown control.

Syntax

TDBDropDown.DataField = string

Remarks

Read/Write at run time and design time.

The DataField property need not be the same as the ListField property used for incremental search.

If the DataField property is not specified, the ListField property specifies the column to be used for both incremental search and the selection value. If neither property is specified, then the first column in the TDBDropDown control will be used.

Note

Do not confuse the DataField property of the TDBDropDown control with the DataField property of the Column object or intrinsic Visual Basic controls.

To associate a TDBDropDown control with a Column object that belongs to a TDBGrid control, set the column's DropDown property to the name of the drop-down control at either design time or run time.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback