Print Page | Close Window

combobox itemdata

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=13422
Printed Date: 21 June 2024 at 4:37pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: combobox itemdata
Posted By: MikeM
Subject: combobox itemdata
Date 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 ?



Replies:
Posted By: Oleg
Date Posted: 16 February 2009 at 12:32pm
Hi,
 
You need PropertyItemEnum item type.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: MikeM
Date Posted: 17 February 2009 at 3:34am
OK, thanks it works fine.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net