Gridview内部验证 [英] Validation inside Gridview

查看:78
本文介绍了Gridview内部验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在项目中的每个人都晚安,我使用了一个包含编辑更新删除插入按钮的网格视图.如果我插入一行但一个必需值为空,则我使用requiredfieldValidator和RegularExpressionValidator,错误消息显示几分之一秒将插入如何解决此问题,请帮帮我




在此先感谢
Meganathan

Hai good evening to everybody in my project i used one grid view that contains edit update delete insert button.I use requiredfieldValidator and RegularExpressionValidator if i insert one row but one required value is null the error message display for fraction of second the data will inserted how to solve this please help me




thanks in advance
Meganathan

推荐答案

您要在其中访问编辑的Grid单元将这些单元格转换为"Template Feilds",并添加Feild Validator并将验证控件作为文本框名称提供给转换了模板字段.

希望这对您来说是必需的解决方案.
In which Grid cells you are giving access to edit convert that cells as "Template Feilds" and add Feild Validator and give validation control as the text box name in that converted template feild.

Hope this is required solution for you.


这篇关于Gridview内部验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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