K
ken s
Greetings,
I'm using a custom date format to display date values in a BoundField in a
GridView. Here's the line that formats the date value:
DataFormatString="{0:MM/dd/yy}"
It works fine as long as there's a date in the field being displayed. But
if the field is null, it displays 01/01/01. I'd prefer that it either show a
blank field when it's null. How can I do this?
I'm using a custom date format to display date values in a BoundField in a
GridView. Here's the line that formats the date value:
DataFormatString="{0:MM/dd/yy}"
It works fine as long as there's a date in the field being displayed. But
if the field is null, it displays 01/01/01. I'd prefer that it either show a
blank field when it's null. How can I do this?