Jump to content

Recommended Posts

Posted

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 ?
Posted

HI,

 

Actually I already the demo ( GridWithDBLookupCombo) to do  but I dont know how to display it

 

In image lookup.jpg

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 ? 

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