Jump to content

Grid column editor (TuniComboBox) empty after I select Value


skafy

Recommended Posts

Hi, I'm having problem how to read value after I Select a value on my Combobox Editor in Grid column.
 


procedure TMainForm.UniDropDownSelect(Sender: TObject);
begin
  ShowMessage('UniDropDownSelect' + TUniComboBox(Sender).Items.Strings[ TUniComboBox(Sender).ItemIndex]);
end;


procedure TMainForm.FDQuery1AfterOpen(DataSet: TDataSet);
var
  lala: TUniComboBox;
begin
  lala:= TUniComboBox.Create(Self);
  lala.Items.Add('lala1');
  lala.Items.Add('lala2');
  lala.OnSelect:= UniDropDownSelect;

  UniDBGrid1.Columns.ColumnFromFieldName('COL1').Editor:= lala;
end;

 The UniDropDownSelect allways returning Item Index of -1.

 

How can I retrive value after it vas selected.?

Link to comment
Share on other sites

4 hours ago, skafy said:

Hi, I'm having problem how to read value after I Select a value on my Combobox Editor in Grid column.

 

18 minutes ago, Alain Debande said:

I have exactly the same problem !

it would be really cool to have an answer to this problem !

We will check.

 

18 minutes ago, Alain Debande said:

I have exactly the same problem !

Can you please specify, which edition and build of UniGUI are you using?

Link to comment
Share on other sites

  • 2 years later...

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...