Hi Bonnie,
Thanks for help. I have found it also :)
>Hi Denis,
>
>I typically leave things DBNull and don't default them to anything. It looks like you're using a Typed DataSet, from what you've posted. Each column in a row of a Typed DataSet has a method generated for checking for nulls:
>
>MyTableRow.IsdatumNull()
>
>If you still want to default it to something, DateTime.MinValue is a good choice.
>
>~~Bonnie
>
>
>>Hi,
>>I create a dataset and datatable.
>>The datatable has DataColumn "datum" As System.DateTime.
>>
>>For all fields I can create default values.. for integer 0, for boolean false, for string leave property blank, but what should I set for DefaultValue property in System.DateTime case?
>>
>>More..
>>When I leave
<DBNULL>
in this property, later - I can't access this value because it brings an error.. When I use MyTableRow type.. and MyTableRow.datum - not isDbNull - but exception with wrong type cast!
>>
>>So, the question is
>>What the value should I write in the DefaultValue property for System.DateTime?
>>
>>Thanks
>>Denis