How do I take string values from a list of objects and add them to a drop down list?
<p>I want to take a list of employees with 3 parts, employee id, last name and first name and add them to a drop down list showing last name, first name. </p>

<p>What I have so far is that I created a class for the employees:</p>

<pre><code>   public class Employee
{
    public int emp_Id;
    public string lastName;
    public string firstName;

    public Employee(int id, string last, string first)
    {
        this.emp_Id = id;
        this.lastName = last;
        this.firstName = first;
    }
}
</code></pre>

<p>and created a list to populate:</p>

<pre><code>private List&lt;Employee&gt; employeeList = new List&lt;Employee&gt;();
</code></pre>

<p>this list is populated from a sql query and then sorted by last name.</p>

<pre><code>foreach (DataRow row in ds.Tables["EMPLOYEE_TABLE"].Rows)
        {
          employeeList.Add(new Employee(int.Parse(row["EMP_ID"].ToString()), 
          row["LAST_NAME"].ToString(), row["FIRST_NAME"].ToString()));
        }

 employeeList.Sort(delegate(Employee E1, Employee E2) { return E1.lastName.CompareTo(E2.lastName); });
</code></pre>

<p>and everything up to that point worked exactly as I wanted it to but I cannot figure out how I populate a dropdownlist with the last name and first name values contained in the list.</p>

<p><em>code has been edited for readability</em></p>
