This is a migrated thread and some comments may be shown as answers.

[Solved] Formate null date in Radgrid

1 Answer 179 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eva
Top achievements
Rank 1
Eva asked on 16 Apr 2008, 04:56 PM

Hi,

How to formate null date in Radgrid.I tried the following code in Prerender 

If gdItem("TestDate").Text = "01/01/1900" Or gdItem("TestDate").Text = "01/01/0001" Or gdItem("TestDate").Text = "01/01/01" Then

gdItem(
"TestDate").Text = ""

End
If

it works ,but is there any other method to display null date in rad grid.

Thanks.
Eva

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 18 Apr 2008, 09:42 AM
Hello Eva,

The approach that you have used is correct. In addition to it, you can also use the ItemDataBound event handler, or use a codeblock, but the logic remains pretty much the same, so you can sefaly preserve the present setup.

Regards,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Eva
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or