ComboBox: Adding Text and Value to an Item (no Binding Source)

Posted by BDotA on Stack Overflow See other posts from Stack Overflow or by BDotA
Published on 2010-06-17T15:52:39Z Indexed on 2010/06/17 16:03 UTC
Read the original article Hit count: 171

Filed under:
|
|

In C# WinApp, How Can I add both Text and Value to the items of my comboBox? I did a search and usually the answers are using "Binding to a source".. but in my case I do not have that source ready in my program... how can I do something like this:

combo1.Item[1] = "DisplayText"; combo1.Item[1].Value = "useful Value"

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms