问题
i have list view inside another list view like lv1-->lv2 now problem is inserting record in nested list view see error...
Inserting is not supported by data source 'SqlDataSource2' unless InsertCommand is specified.
another problem when i keep datasource2 in LV1 selected template but datasource2 is not binding lv2.. how can bind lv2...?
回答1:
you need to bind second listview in first listview row databound event like:
In first listview databound event, first you need to finding the second listview control and then bind the second listview
hope this help.
来源:https://stackoverflow.com/questions/5151076/nested-list-view-bind-problem-c-sharp