srvdbcombobox TSRVDBComboBox

<< Click to display table of contents >>

srvdbcombobox TSRVDBComboBox

TSRVDBComboBox represents a data-aware combo box control.

Unit SRVDBComboBox;

Syntax

TSRVDBComboBox = class(TSRVComboBox)

Hierarchy

TObject

TPersistent

TComponent

TControl

TWinControl

TSRVWinControl

TSRVEditControl

TSRVCustomComboBox

TSRVComboBox

Description

Use TSRVDBComboBox to allow users to change the value of a field on the current record in a dataset either by selecting an item from a list or by typing in the edit box part of the control. The selected item or entered text becomes the new value of the field if the database combo box's ReadOnly property is False. The combo box can be customized to enable or disable typing in the edit region of the control, to display the list as a drop down or as a permanently displayed list, to sort the items in the list, and so on.

Unlike the standard TDBComboBox, TSRVDBComboBox can be used in TDBCtrlGrid even if its Style = csSimple.

Properties and events

New properties:

Property

Type

Default value

Meaning

published DataField

String

'' (empty string)

Identifies the field from which the control displays data.

published DataSource

TDataSource

nil

Links the control to a dataset.

none Field

TField

 

Returns the TField object whose current value the control represents.

published ReadOnly

Boolean

False

Determines whether the user can change the value of the field.