Hi,
I am having troubles when filling combobox (whitch serves as editor in dbgrid)... and when i filled it - with the use of remotequery timer the results seems to be empty. How is that possible?
I've created test case.
To recreate go to column city and doubleclick so editor is enabled then add one char or remove one. this fires remotequery event where combobox items are filled
procedure TMainForm.UniComboBox1RemoteQuery(const QueryString: string;
Result: TStrings);
begin
if Length(QueryString) > 0 then
begin
UniComboBox1.Items.Add('1');
UniComboBox1.Items.Add('2');
UniComboBox1.Items.Add('3');
UniComboBox1.Items.Add('4');
UniComboBox1.Expand;
end;
end;
I also expand the combobox after filling. The combobox seems to be empty after all this.
What am I doing wrong?
GridEditors.zip