Jeff
Tue Sep 28 06:58:19 CDT 2004
That was the first thing I tried. I believe the default value is for Null
values. I'm trying to default an Empty string. Is that the same thing?
My datasource is a Custom Collection. I'm not sure if that has an affect on
the behavior.
"Ken Tucker [MVP]" <vb2ae@bellsouth.net> wrote in message
news:O6Edx0UpEHA.1712@tk2msftngp13.phx.gbl...
> Hi,
>
> Set the default value for the datacolumn.
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatacolumnclassdefaultvaluetopic.asp
>
> Ken
> --------------------
> "Jeff Haumesser" <haumesser@karpel.com> wrote in message
> news:%23cKCewOpEHA.3460@TK2MSFTNGP15.phx.gbl...
> Here is one I am stuggling with:
>
> I have a project I'm developing in VB .NET. I have a datagrid in a window
> with two columns. The first column is readonly and the second column is
> not
> and initialized with Zero's. The values in column two must be numeric.
> How
> do I prevent the user from leaving an Empty set in the cell? I already
> have
> a handler that ensures the user enters numeric values. I would like to
> default to Zero if the user deletes a value or enters an empty set.
>
> Thankyou,
>
> Jeff
>
>
>