Home All Groups Group Topic Archive Search About

testing null value in vb

Author
29 Mar 2005 2:11 PM
Sam
Hi,
How can I test if one of the cells in my datagrid has a null value ? I
know how to access the content of a cell but dunno how to determine if
its null or not...
thx

Author
29 Mar 2005 2:15 PM
Herfried K. Wagner [MVP]
"Sam" <samuel.berthe***@voila.fr> schrieb:
> How can I test if one of the cells in my datagrid has a null value ? I
> know how to access the content of a cell but dunno how to determine if
> its null or not...

\\\
If x Is DBNull.Value Then
    ...
End If
///

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
29 Mar 2005 2:26 PM
Sam
thanks a lot ! :)