如何验证DataGridViewTextBoxColumn [英] How to validate DataGridViewTextBoxColumn

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

问题描述

大家好..



我是Windows应用程序开发的新手。



我有一个我的应用程序中的网格视图允许输入记录。在该网格视图中,我有Qty和Rate的列。这两列只能接受数字。



如何验证文本框.... ??



请帮助



提前致谢..

Hi all..

I am new to windows application development.

I have a grid view in my application which allows to enter record. In that grid view I have columns that are "Qty" & "Rate". These two columns should accept numbers only.

How to validate that text boxes....??

Please help

Thanks in advance..

推荐答案





你可以去CellValidating datagridview的事件。请参阅以下链接。

如何验证datagridviewtextboxcolumn [ ^ ]

如何验证DataGridViewTextBoxColumn [ ^ ]



希望它有所帮助。
Hi,

you can go for "CellValidating" event of the datagridview. refer below links.
How to validate a datagridviewtextboxcolumn[^]
How to validate the DataGridViewTextBoxColumn[^]

hope it helps.


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

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