I"m populating a DropDownList
from a strongly typed list, and that is working fine. The issue is I want to concatenate two of the fields within the list first and then put them in the dropdown. i.e., FirstName + LastName. I've tried a few things that didn't pan out, so can someone give this novice a lil help.
This is an example of what I'm doing.
private List<Customer> _CustomerList = new List<Customer>();
ddlCustomer.DataSource = _CustomerList;
ddlCustomer.DataTextField = "FirstName";
ddlCustomer.DataValueField = "CustomerKey";
ddlCustomer.DataBind();
this works but I need first and last together and I can't manipulate that data in the Customer
object.