Cannot accept Value 0 in Datagridview using vb.net 2005 - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Cannot accept Value 0 in Datagridview using vb.net 2005

mj_yusufmj_yusuf Posts: 1Member
Hi

Am using datagridview in vb.net.

When i keen value 0(Zero) in Datgridview row at runtime it raise error: "Value cannot be null"

How can i solve this error.Please can anybody help me.

TIA
Yusuf

Comments

  • aamirwaziraamirwazir Posts: 108Member
    : Hi
    :
    : Am using datagridview in vb.net.
    :
    : When i keen value 0(Zero) in Datgridview row at runtime it raise
    : error: "Value cannot be null"
    :
    : How can i solve this error.Please can anybody help me.
    :
    : TIA
    : Yusuf
    :
    :
    Yousaf,
    are you getting the value from Database,
    if yes then write in the sql statement isNull(colValue, 0)
    otherwise please send the code as well
Sign In or Register to comment.