嵌套列表视图绑定问题C#
问题描述:
我喜欢里面的另一个LV1列表视图列表视图 - > LV2现在的问题是嵌套的列表视图中插入记录看到错误...
i have list view inside another list view like lv1-->lv2 now problem is inserting record in nested list view see error...
插入不是由数据源SqlDataSource2除非指定的InsertCommand支持。
当我保持LV1所选模板datasource2但datasource2不具约束力LV2 ..怎么可以绑定LV2另一个问题...?
another problem when i keep datasource2 in LV1 selected template but datasource2 is not binding lv2.. how can bind lv2...?
答
您需要第二列表视图中绑定列表视图第一排数据绑定的事件,如:
you need to bind second listview in first listview row databound event like:
在第一的ListView数据绑定的事件,首先你需要找到第二个ListView控件然后绑定第二列表视图
In first listview databound event, first you need to finding the second listview control and then bind the second listview
希望这有助于。