Object Reference > TDBDropDown Properties > SelectedItem Property |
This property returns or sets the bookmark identifying the selected item in a TDBDropDown control.
TDBDropDown.SelectedItem= variant
Read/Write at run time. Not available at design time.
Use the value returned by the SelectedItem property to determine the current row in a TDBDropDown control.
When you set the SelectedItem property to a valid value in code, the row associated with that value becomes the current row, and the drop-down grid adjusts its display to bring the new current row into view if necessary.
The SelectedItem property is defined as a Variant to accommodate user-defined bookmarks in unbound mode.
Note
For the TDBDropDown control, the SelectedItem and Bookmark properties are synonymous.