Object Reference > True DBGrid Properties > DropDown Property |
DropDown Property
This property associates the name of a TDBDropDown control with a column in a TDBGrid control.
column.DropDown = string
Read/Write at run time and design time.
When the user clicks the column's in-cell button, the associated TDBDropDown control is displayed below the current cell.
Use the DropDown property and a TDBDropDown control to implement a multicolumn drop-down list box that works seamlessly with a TDBGrid control. The ListField property of the drop-down control determines which column is used for incremental search. The DataField property of the drop-down control determines which grid column is updated when the user selects an item.
Note
When you set the DropDown property of a column to the name of a TDBDropDown control, then the Button property for that column will be set to True. Similarly, if you set the DropDown property of a column to an empty string, then the Button property for that column will be set to False.