[Quote=引用 11 楼 foxdave 的回复:]
主要是通过checkbox取到相应的item也就是对应的记录呗
DataViewWebPart 从MSDN查查这个对象看看有没有什么方法,没玩儿过
从item取column就容易多了
[/Quote]
DataViewWebPart 查了资料:DataView can only provide you with the capability of viewing data, not insert, edit and update data.
To do all insert, edit and update, you need ASP.NET GridView(GridView Examples for ASP.NET 2.0: Editing the Underlying Data in a GridView)
this is so bad,或许没有好的办法来解决我的问题。
还有一种思路:但是会复杂点,就是用Ribbon来做。Ribbon的工具可以删除,可以添加。是一个可行的方向。
另外webpart,还有个一个特性叫connection,这个方式我也做了简单的小实验。基本上webpart都支持connection这个功能。不同的webpart可以来connect,通过参数,这样我就需要重新开发一个webpart.要用相同的接口来做。这个方面的东西还没有研究,不过觉得也是一种思路。
欢迎大家来讨论!