I have an array for type Person
Person[] Traders = GetTraders();
Person class contains data objects such as first name, last name etc.
I want to add all first names to a dropdownlist. How can i do that? I tried doing it like this, but it won't get the first names:
ddl_traders.DataSource = traders;
EDIT
Person has the following string fields: FirstName, LastName, login.
I want the dropdownlist to display FirstName, but the value has to be the logins. I'm fairly certain that is possible, although I have no idea how it can be done. Any suggestions?