Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - combobox itemdata
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

combobox itemdata

 Post Reply Post Reply
Author
Message
MikeM View Drop Down
Newbie
Newbie


Joined: 23 January 2009
Location: Belgium
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote MikeM Quote  Post ReplyReply Direct Link To This Post Topic: combobox itemdata
    Posted: 16 February 2009 at 9:56am
Hi,

Is there a way to associate a user defined value to each combobox item and retrieve this value when selecting an item from the list ?

I want to populate my combobox with values retrieved via SQL query (like SELECT label, id FROM table WHERE ...)

The combobox list will display the "label" values and when I select an item, I want to get the corresponding ID.

Is this possible ?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2009 at 12:32pm
Hi,
 
You need PropertyItemEnum item type.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
MikeM View Drop Down
Newbie
Newbie


Joined: 23 January 2009
Location: Belgium
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote MikeM Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2009 at 3:34am
OK, thanks it works fine.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.