Jump to content

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...