DataGridView添加新记录 [英] DataGridView add new record

查看:72
本文介绍了DataGridView添加新记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我有一个datagridview,2个文本框和1个组合框

如果2个文本框和组合框不为null,是否有任何方法可以在datagridview中插入之前进行检查

谢谢和问候....

Hi to all

I have a datagridview, 2 textbox and 1 combobox

Is there any way to check BEFORE insert in datagridview if the 2 textbox and combobox in not null

Thanks and regards....

推荐答案

在这方面有什么困难..
在调用插入函数之前,请先检查类似
的内容
whats hard in that..
Before you call your insert function check something like

If textBox1.Text IsNot Nothing OrElse textBox1.Text <> "" Then

//code to insert..
End If


这篇关于DataGridView添加新记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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