franzandreani
-
Posts
4 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Posts posted by franzandreani
-
-
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
-
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
-
Default value on a dblookupCombobox when dataset is in insert mode
in General
Posted
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