I am populating with an entitycollection from a function. Currently my code looks like this.
public IList populateDropDown_Pages()
{
EntityCollection ec = new EntityCollection(new EntityFactory());
adapter.FetchEntityCollection(adminPages, null, 0, sortExpression);
return adminPages;
}
The above code seems to work but i also need an empty value in the dropdown. Typically i would go ddl.Items.Insert(0, "something"), but in this case i don't have access to the control directly. Is there someway i can add an empty row to the collection instead?
Thanks
Matt