I have the following example entity object
class Entity
{
public string Name { get; set; }
public IList<string> Fields { get; set; }
}
Now I have a details view bound to a datagrid and both can display/edit the name property fine, but I want to be able to edit the fields property as well.
I was hoping to use a multi-line textbox to do this. So each line would correspond to an item in the Fields list. But I am having an issue how to bind the list to the textbox so each item is on a new line. I don't think I have an issue of getting the details out and putting them back into the object to save afterwards since I do this manually.
So the question is, Is there a way I can perform a custom bind on the textbox in the details view so each IList item is on a separate line?