Thanks, I just changed the "ListItem" to simple "string" and it works now!
Thanks again, you saved my day!
User Profile
Collapse
-
-
Show two fields of a dataset in the same combobox c#
Hello, I'm trying to view filelds of a dataset in the same combobox:
This is how I get the first name only:
(I want to add "LastName" in to the combobox too to view the full name.)
comboBox2.DataS ource = EmployeesDS.Tab les["Employees"];
comboBox2.Displ ayMember = "FirstName" ;
I'll appreciate any help,
(vs 2005 c#)
Thanks.
No activity results to display
Show More
Leave a comment: