Thanks! That solves my problem I guess :-)
"Miha Markic [MVP C#]" <miha at rthand com> wrote in message
news:uw0iElHiFHA.2072@TK2MSFTNGP14.phx.gbl...[color=blue]
> Hi Dragu,
>
> Every nullable column in typed dataset has an Is[ColumnName]Null() method.
>
> --
> Miha Markic [MVP C#] - RightHand .NET consulting & development
>
www.rthand.com
> Blog:
http://cs.rthand.com/blogs/blog_with_righthand/
> SLODUG - Slovene Developer Users Group
www.codezone-si.info
>
> "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> news:%23DtHbGHiFHA.3700@TK2MSFTNGP10.phx.gbl...[color=green]
> > Hi,
> >
> > Something I don't understand about a Typed DataSet: When a value in the
> > DataSet is DBNull, it throws this error: "Cannot get value because it is
> > DBNull".
> >
> > But aren't Typed DataSets invented to make life easier, to be able to[/color][/color]
get[color=blue][color=green]
> > to
> > tge Tables and Values with less code, in less time? But with this thing
> > you
> > need to add a Try-Catch around every statement when using the value, add
> > for
> > each value a default value in your DataSet (and you have to redo it each
> > time something changes to your DataSet!), or don't allow Null-values in
> > any
> > of your Tables in your Sql Server..
> >
> > So why are people still using these things? Did anybody find an easy,[/color][/color]
fast[color=blue][color=green]
> > and good working solution to get around this problem?
> >
> > Pieter
> >
> >[/color]
>
>[/color]