Click here to Skip to main content
13,734,248 members
Rate this:
Please Sign up or sign in to vote.
See more:
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....
Posted 26-Apr-11 1:15am
Prerak Patel 26-Apr-11 7:25am
Just use If. Don't you like to try?!

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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
Vagelisr 26-Apr-11 7:33am
I dont have any code for insert in my datagridview (i use data sources)
For this reason i'm asking how to catch the add new record in a datagridview.....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web06-2016 | 2.8.180920.1 | Last Updated 26 Apr 2011
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100