嵌套列表视图绑定问题C# [英] nested list view bind problem c#
本文介绍了嵌套列表视图绑定问题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
希望这有助于。
这篇关于嵌套列表视图绑定问题C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文