M
McNutt Consulting
All,
I have a class with a date field
<Serializable()> Public Class Account
Private _startdate As Date
Public Property StartDate() as Date
Get
return _startdate
End Get
Set(ByVal Value As Date)
_startdate = Value
End Set
End Property
....class properties/methods
End Class
When this is bound to a datagrid, it shows 1/1/0001. I understand why and
all the value type/reference type discussion I've read are clear. However,
when _startdate.equals(date.minvalue), I don't want to display anything in
the datagrid or anywhere else for that matter. I want StartDate.ToString to
return String.Empty.
Is this possible with a custom format provider or in any other way?
Thanks for you time,
Larry
I have a class with a date field
<Serializable()> Public Class Account
Private _startdate As Date
Public Property StartDate() as Date
Get
return _startdate
End Get
Set(ByVal Value As Date)
_startdate = Value
End Set
End Property
....class properties/methods
End Class
When this is bound to a datagrid, it shows 1/1/0001. I understand why and
all the value type/reference type discussion I've read are clear. However,
when _startdate.equals(date.minvalue), I don't want to display anything in
the datagrid or anywhere else for that matter. I want StartDate.ToString to
return String.Empty.
Is this possible with a custom format provider or in any other way?
Thanks for you time,
Larry