Data bind a nested listview (ASP.NET)
Posted on 2009-04-08
I am making an asp.net page that has a listview that shows entities and this listview has a nested listview that shows items under that entity (entities can have 1 to n items assigned to them). I have an ado dataset to populate these listviews, which contains two data tables one with the entities and one with the items (you know which items go to each entity because the items have an entity id). I am trying to find a way to bind to this dataset instead of manually iterating through the dataset and adding items to the listviews. Is there a way to do this?
I have been reading about master/detail datasets which sound like exactly what i have, I just am not sure how to apply them to this situation.