Where does Combobox's Itemdata Property go?
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngfreeforall' list.


Jigs
-- Moved from [aspngstart] to [aspngfreeforall] by Swoop Doggy Dogg <Click here to reveal e-mail address> --

In VB6 it was really easy to load a ComboBox with data and then
use the ItemData property to associate a key value or something with the
item in the list.

There looks to no longer be an ItemData property... So,
how do you load manually (for example) Customer Names and Customer ID's into
a ComboBox -- showing the Customer Names but when one is selected, use the
Customer ID? Again, I want to do this manually and not use DataBinding.

-Jignesh

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

Reply to this message...
 
    
Saye, Robert
The combobox now uses cmb1.text & cmb1.value. So you see the text, but
can use the value.

Robert Saye
Starent Networks
(978)851-1197
www.starentnetworks.com=20

-----Original Message-----
From: Jigs [mailto:Click here to reveal e-mail address]
Sent: Tuesday, August 06, 2002 1:43 AM
To: aspngfreeforall
Subject: [aspngfreeforall] Where does Combobox's Itemdata Property go?

-- Moved from [aspngstart] to [aspngfreeforall] by Swoop Doggy Dogg
<Click here to reveal e-mail address> --

In VB6 it was really easy to load a ComboBox with data and then
use the ItemData property to associate a key value or something with the
item in the list.=20

There looks to no longer be an ItemData property... So,
how do you load manually (for example) Customer Names and Customer ID's
into
a ComboBox -- showing the Customer Names but when one is selected, use
the
Customer ID? Again, I want to do this manually and not use DataBinding.

-Jignesh

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
| ASP.net DOCS =3D http://www.aspng.com/docs
| [aspngfreeforall] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/aspngfreeforall =3D JOIN/QUIT
| news://ls.asplists.com =3D NEWSGROUP

Reply to this message...
 
 
System.Web.UI.DataBinding
System.Windows.Forms.ComboBox




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com