Click here to Skip to main content
13,249,504 members (36,916 online)
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 2: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 |
Web01 | 2.8.171114.1 | Last Updated 26 Apr 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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