如何通过代码编辑Detailsview [英] How I Can Edit Detailsview By a Code

查看:52
本文介绍了如何通过代码编辑Detailsview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想通过Detailsview显示信息,用户可以编辑或删除它.但是,当用户选择元素之一并更新时,除非在文本框中输入代码,否则用户无法再次编辑.



I want to show information by Detailsview and the user can edit or delete that. But when the user tike one of element and update the user can’t edit again until enter a code in the textbox.

推荐答案

设置一个名称为IsEdited true的属性一经编辑.始终为此属性匹配.默认情况下,将其设置为false.
Set one property with the name IsEdited true one when edited. Always match for this property. By default let it be false.


这篇关于如何通过代码编辑Detailsview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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