<< Click to display table of contents >> TSRVDBComboBox |
TSRVDBComboBox represents a data-aware combo box control.
Unit SRVDBComboBox;
Syntax
TSRVDBComboBox = class(TSRVComboBox)
TObject
TPersistent
TComponent
TControl
TWinControl
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.
New properties:
Property |
Type |
Default value |
Meaning |
---|---|---|---|
DataField |
String |
'' (empty string) |
Identifies the field from which the control displays data. |
DataSource |
TDataSource |
nil |
Links the control to a dataset. |
Field |
TField |
|
Returns the TField object whose current value the control represents. |
ReadOnly |
Boolean |
False |
Determines whether the user can change the value of the field. |