S
sloan
<asp:BoundField DataField="MyDate" DataFormatString="{0:d}" HeaderText="My
Date" />
I have a BoundField being populuated with the "MyDate" column.
The MyDate is in a strongly typed DataSet. The values of course come from
the DataBase.
I have a few values in the Database that have NULL as the value for MyDate.
Its not ideal, but I don't have control of this one.
Instead of passing back a NULL, I'm passing back a 12/31/1899 date value.
( This is because the Grid breaks, when I run a
DataSet.Select("somefield=123"); )
(The tsql looks like
Select
ISNULL ( MyDate , '12/31/1899') as MyDate
From
blah blah blah
I'd like to just show an emptystring or a nbsp; when I encounter dates <
1/1/1900.
Yeah, its kind of a hack, but its sufficient for this project.
Which event should I be checking?
Or is there any way to hide a the display .. based on some rule in the aspx
definition of the <asp:BoundField> ?
Thanks for any hints.
Date" />
I have a BoundField being populuated with the "MyDate" column.
The MyDate is in a strongly typed DataSet. The values of course come from
the DataBase.
I have a few values in the Database that have NULL as the value for MyDate.
Its not ideal, but I don't have control of this one.
Instead of passing back a NULL, I'm passing back a 12/31/1899 date value.
( This is because the Grid breaks, when I run a
DataSet.Select("somefield=123"); )
(The tsql looks like
Select
ISNULL ( MyDate , '12/31/1899') as MyDate
From
blah blah blah
I'd like to just show an emptystring or a nbsp; when I encounter dates <
1/1/1900.
Yeah, its kind of a hack, but its sufficient for this project.
Which event should I be checking?
Or is there any way to hide a the display .. based on some rule in the aspx
definition of the <asp:BoundField> ?
Thanks for any hints.