skafy Posted September 20, 2024 Posted September 20, 2024 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 Quote
Sherzod Posted September 20, 2024 Posted September 20, 2024 Hello, At least you should use Result: TStrings Result.Add('1'); instead of UniComboBox1.Items.Add('1'); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.