Hello
TDBLookupComboboxEh inherits from TCustomDBEditEh and inherits all the behavior of TDBEditEh, and is compatible with the standard TDBEdit component i.e. writes data to a DataSet field only when the control leaves input focus or the user presses Enter.
You can force TDBLookupComboboxEh to write data to the field if you do it manually in the OnChange event handler like this:
Code:
procedure TForm1.DBLookupComboboxEh1Change(Sender: TObject);
begin
if DBLookupComboboxEh1.Focused and
DBLookupComboboxEh1.Modified then
begin
if MemTableEh1.State in [dsEdit, dsInsert] then
DBLookupComboboxEh1.UpdateData;
end;
end;