jptec Posted November 27, 2016 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 ? Quote
Administrators Farshad Mohajeri Posted November 27, 2016 Administrators Posted November 27, 2016 Hi, There are examples under Demos folder regarding this. They show how to use UniDBLookupCombo in a DBGrid. Quote
jptec Posted November 27, 2016 Author 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 ? Quote
Administrators Farshad Mohajeri Posted November 27, 2016 Administrators Posted November 27, 2016 Your column field must be a LookupField in this case. 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.