Re: Databinding Dates in ASP .Net 2.0
- From: Brock Allen <ballen@xxxxxxxxxxxxxxxxx>
- Date: Sun, 12 Jun 2005 12:04:39 -0700
So since the SqlDateTime is not supported in a dataset, you basically can't do this if your objectdatasource is using a dataset. Is that correct?
Why do you say that? It works fine for me. It probabaly doesn't display exactly how you'd like when it's null, since that's exactly what it does display: "Null". The other idea it to either create your own class to hold the DateTime and override ToString() returning the empoty string when null, or handle the GridView's (or DataGrid's) RowDataBound (or ItemDataBound) and then going into the cell that has the null value and changing it to contain an empty string when the DateTime is null.
-Brock DevelopMentor http://staff.develop.com/ballen
.
- Follow-Ups:
- Re: Databinding Dates in ASP .Net 2.0
- From: Brock Allen
- Re: Databinding Dates in ASP .Net 2.0
- References:
- Re: Databinding Dates in ASP .Net 2.0
- From: John Bailey
- Re: Databinding Dates in ASP .Net 2.0
- Prev by Date: Re: an old geezer running visual studio for the first time
- Next by Date: Re: Databinding Dates in ASP .Net 2.0
- Previous by thread: Re: Databinding Dates in ASP .Net 2.0
- Next by thread: Re: Databinding Dates in ASP .Net 2.0
- Index(es):
Relevant Pages
|