nested list view bind problem c#

。_饼干妹妹 提交于 2019-12-25 04:44:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!