使用Listview进行插入,更新和删除-reg

问题描述:

如何使用listview进行插入更新删除?
现在,我将在此处创建用户访问表单,然后在listview中的每一行和每一列中都设置一个复选框,以向执行人员和管理员授予访问权限.我有插入,更新,删除的问题.谁能建议我如何解决这个问题?

谢谢,

Hi, How to work with listview for insert update delete?
Now i''m creating user access form there I''ll make check box in listview each row and column for giving access rights to executive and admin. I have a problem for insert,update,delete. Can anyone suggest me that how to finish off this?

Thanks,

谢谢您的提问.作为建议,您可以对插入,更新和删除按钮使用ListView模板列.并为插入按钮指定命令名称CommandName ="Insert",为更新按钮指定CommandName ="Update",依此类推.使用ListView的Item Command事件.然后在后面的代码中捕获CommandName参数.


谢谢,
马蒙
Thank you for your question. As a suggestion you can use ListView Template column for Insert, Update & Delete button. And give command name CommandName="Insert" for Insert Button, CommandName="Update" for update button and so on. Use Item Command event of ListView. Then Trap CommandName argument in code behind.


Thanks,
Mamun