Click here to Skip to main content
15,943,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i try the above code it is not working.

if(datagridView[j,i].Value != null)

it is not working.please send the code.

1 solution

What you are doing is checking for the null value.
What you need to do is check for the empty string like below

Like this,
if(datagridView[j,i].Value.ToString() != "")
   //Validate here 
Share this answer

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900