jptec Posted November 27, 2016 Share Posted November 27, 2016 Hi All, I m trying to put the UniDBLookupComboBox into a column of UniDBGrid and set the UniDBLookupComboBox to display list value instead of the key value. for example , I select "1-(Sugar)" where "1" is the key and "Sugar" is name. I suppose it can show "Sugar" as I after selected But only "1". object UniDBLookupComboBox_Coach: TUniDBLookupComboBox Left = 3 Top = 231 Width = 145 ListFormat = '%s' ListOnlyMode = lmFollowSource ListField = 'IOP_NAME_ENG_LNG' ListSource = dsCoach KeyField = 'IOP_KEY_SYS' ListFieldIndex = 0 TabOrder = 4 Color = clWindow end I find that if I use the UniDBLookupComboBox alone in a edit form. It show the list value instead of the key. can I achieve same in embed in the unidbgrid? Any advise ? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 27, 2016 Administrators Share Posted November 27, 2016 Hi, There are examples under Demos folder regarding this. They show how to use UniDBLookupCombo in a DBGrid. Link to comment Share on other sites More sharing options...
jptec Posted November 27, 2016 Author Share Posted November 27, 2016 HI, Actually I already the demo ( GridWithDBLookupCombo) to do but I dont know how to display it In image you can find that the Top one is the selected one from list which is I suppose it display but once I save it , it go to bottom one. I need use unidblookupcombo to display the top one case. Can I do that ? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 27, 2016 Administrators Share Posted November 27, 2016 Your column field must be a LookupField in this case. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now