ComponentOne List 8.0 for ActiveX
SelectedItem Property (TDBCombo)

 

TDBCombo Reference> TDBCombo Control Properties> SelectedItem Property (TDBCombo)

SelectedItem Property (TDBCombo)

This property returns or sets the bookmark identifying the selected item in a control.

Syntax

object.SelectedItem= variant

Remarks

Read/Write at run time. Not available at design time.

Property applies to TDBList and TDBCombo controls.

Use the value returned by the SelectedItem property to determine the current row in a TDBList or TDBCombo 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 control 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 TDBCombo control, the SelectedItem and Bookmark properties are synonymous.

See Also

TDBList and TDBCombo Controls

 

 


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

Product Support Forum  |  Documentation Feedback