|
-
Feb 28th, 2004, 03:31 PM
#1
Two Values in ComboBox [Resolved]
Hi,
There was a property in VB called ItemData which is a integer value associated with each item. This allowed me to show a Description of a Field as the Item and the ID of the Field as ItemData(Not visble).
E.G.
EmployeeName Employee_ID
Danial 1
Joe 2
Robert 3
How can i achive this in C#, i dont want to display the Employee ID to the user, is there any way i can Extend the ComboBox and add an extra property?
Thanks for your help.
Last edited by Danial; Feb 29th, 2004 at 06:38 PM.
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Feb 29th, 2004, 12:13 AM
#2
PowerPoster
I think you are refering to ValueMember and DisplayMember....or something like that.
I have been using asp.net mostly for a long while now, so I don't remember if that is what they are called for win forms or not...
-
Feb 29th, 2004, 06:38 PM
#3
Originally posted by hellswraith
I think you are refering to ValueMember and DisplayMember....or something like that.
I have been using asp.net mostly for a long while now, so I don't remember if that is what they are called for win forms or not...
Thats exactly what i was looking for, thanks a lot for that.
Cheers.
Danial
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|