Hello
1. If you populate the Items and KeyItems properties, then those properties must contain the same number of values. Otherwise, the behavior of the component may be unpredictable.
2. LimitTextToListValues = True and DropDownBox.AutoFilterType = lsftContainsEh are mutually exclusive properties.
To search through lsftContainsEh, you need to be able to enter text that is not in the list.
For your case, you need to remove LimitTextToListValues = True and add a check in the DBComboBoxEh.OnExit event.
Code:
procedure TForm2.DBComboBoxEh1Exit(Sender: TObject);
begin
if DBComboBoxEh1.ItemIndex = -1 then
begin
ShowMessage('DBComboBoxEh1 must contain a value from the list.');
end;
end;