Results 1 to 3 of 3

Thread: Two Values in ComboBox [Resolved]

  1. #1

    Thread Starter
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    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 :

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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...

  3. #3

    Thread Starter
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    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
  •  



Click Here to Expand Forum to Full Width