网格中的必填字段验证 [英] Required field validation in grid

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

问题描述

我有一个带有文本框和下拉模板字段的网格,并且每个字段都有一个必需的字段验证器. gridview包含15行.

单击保存按钮时,仅对某些特定行而不对所有行,如何显示验证?

任何解决方案.

I have a grid with a textbox and dropdown template fields and I have a required field validator for each. The gridview contains 15 rows.

How can I make the validation appear when the save button is clicked, just for some specific rows and not for all rows?

Any Solutions.

推荐答案

嘿,我给出了一个初步的想法,您应该扩展它

Hey i''m giving an initial idea, you should expand it

RequiredFieldValidator1.ControlToValidate = "GridView1.Rows[0].Cells";


检查此内容.

http://www.vbforums.com/showthread.php?t=393466 [ ^ ]
Check this.

http://www.vbforums.com/showthread.php?t=393466[^]


这篇关于网格中的必填字段验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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