使用Listview进行插入,更新和删除-reg [英] working with Listview for insert,update and Delete -reg

查看:70
本文介绍了使用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


这篇关于使用Listview进行插入,更新和删除-reg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆