franzandreani Posted April 19 Share Posted April 19 Hi all In delphi when i want to display a default value in a dblookupcombobox i do something like this if datasouce.state = [dsInsert] then begin DBLookupComboBox1.ListSource.DataSet.Locate('id', '3', []); DBLookupComboBox1.ListSource.DataSet.FieldByName(DBLookupComboBox1.KeyField).Value; DBLookupComboBox1.keyvalue:=DBLookupComboBox1.listsource.dataset.fieldbyname(DBLookupComboBox1.keyfield).value end; but in uniGUI it does not shows point to the id i have selected as a default. Any Idea? thank's a lot Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 20 Share Posted April 20 8 hours ago, franzandreani said: In delphi when i want to display a default value in a dblookupcombobox i do something like this Hello, In grid editor? Quote Link to comment Share on other sites More sharing options...
franzandreani Posted April 20 Author Share Posted April 20 Thank you Sherzod , no in grid editor - i heaven't not yet afford this opportunity, i have a form with a dblookupcombobox and i would like to give it a default value. superThanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 20 Share Posted April 20 Your case is not very clear to me. Can you give an example then, possibly on VCL? Quote Link to comment Share on other sites More sharing options...
franzandreani Posted April 22 Author Share Posted April 22 Hi Sherzod making the test application for you I found that it works as expected - in the test app - so the code above works well. I have to find the reason why in the real application it does not work. thank you for you support francesco 1 Quote Link to comment Share on other sites More sharing options...
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.