I am working on a Windows Form right now, specifically, a combo box.
I have two List<string>. Let's say the first List are names, and the second List are ages.
How does one store the entire first List into the collection, so I can use the comboBox to access them?
Upon clicking on an item in this collection, for example, the fifth name, how do I get the index of this item?
So far, I have created my form, and laid the skeleton of the win forms application, but the part of storing the list into the collection is stopping me from moving forward
thank you.
Pravesh Singh
28-Jan-2014For the list of strings it can be done like this
If you don't want to tie your list in Datasource, still one line
Now, if this is list of Strings you can get the whole string