[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'DBCtrls' (#lcl)

# TDBLookupComboBox.DoAutoCompleteSelect

Ensures the internal TDBLookup instance is updated when the control is used in "unbound" mode.

## Declaration

Source position: dbctrls.pp line 874

`protected procedure TDBLookupComboBox.DoAutoCompleteSelect; override;`

## Description

DoAutoCompleteSelect is an overridden method in TDBLookComboBox which re-implements the virtual method from the ancestor class. It does not call the inherited method.

DoAutoCompleteSelect ensures that the dataset for the ListSource is re-positioned when the value in ItemIndex has been changed. This includes calling the UpdateData method for the internal TDBLookup instance when the control is used in "unbound" mode (without a DataSource or DataField).

DoAutoCompleteSelect is called when the KeyUp method handles an alphanumeric key entered while the auto-complete feature has been enabled in AutoCompleteText.

## See also

TDBLookupComboBox.UpdateData |  | UpdateData - copies the local data from the corresponding entry from the lookup field.
TDBLookup.UpdateData |  | Signals the OnUpdateData event handler for pending changes to the linked dataset.
TCustomComboBox.DoAutoCompleteSelect |  | Selects an item in the control when auto-complete is enabled and activated by a key event.
TCustomComboBox.AutoCompleteText |  | Options for the behavior of the Auto-Complete feature.