检查空datagridview列 [英] check empty datagridview columns

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

问题描述

我的表单中有一个datagridview控件和一个提交按钮。我在datagridview中选了四列。我想要的是,首先点击提交按钮它将检查,网格视图中是否有空列或空列。如果是,那么它将显示消息框输入值。否则所有的记录都应该保存在数据库中。

如果代码在循环中运行,还有一件事记录应该只保存一次...如果你给我的话,我会非常感谢你的我的解决方案....

i have one datagridview control and one submit button in my form. i have taken four columns in datagridview. what i want is, on click of the submit button first it will check, is there any null or empty column in grid view. if so, then it will show message box "Enter the value" otherwise all the records should be saved in database.
And one more thing records should be saved only a single time if the code is running in the loop.. i will be very thankful of yours if you give me solution....

推荐答案

看到这些..

C#检查datagridview列是否为空 [ ^ ]

http://stackoverflow.com/questions/11047596/c-sharp-check-if-datagridview-column-is-空 [ ^ ]
See these..
C# check if datagridview column is empty[^]
http://stackoverflow.com/questions/11047596/c-sharp-check-if-datagridview-column-is-empty[^]


a)您可以使用jquery来检查colum n是空的还是没有

b)使用Bulkupload进行插入。
a) Hi use jquery to check whether column is empty or not
b) Use Bulkupload for insert.


这篇关于检查空datagridview列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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