Fill Combo-box via DataSource Using Values from Various Columns
        Posted  
        
            by peace
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by peace
        
        
        
        Published on 2010-06-12T04:00:34Z
        Indexed on 
            2010/06/12
            4:02 UTC
        
        
        Read the original article
        Hit count: 404
        
            Employee emp = new Employee();
            comHandledBySQt.DataSource = emp.GetDataFromTable("1");
            comHandledBySQt.DisplayMember = "FirstName";
The above code displays drop list of employees first names in a combo box. I want first name and last name to be displayed. How can i do it?
I tried to include two columns FirstName and LastName as below but didn't work.
comHandledBySQt.DisplayMember = "FirstName" + " " + "LastName";
Any help will be appreciated.
© Stack Overflow or respective owner