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

[Solved] DataFormatString

1 Answer 213 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pepijn Leenaers
Top achievements
Rank 1
Pepijn Leenaers asked on 28 Apr 2008, 09:14 AM
Hi there all,

I used the GridDateTimeColumn and want to try to only display the time element of the (DateTime) DateField. I thought that I could use DataFormatString="{t}"

but that gives me a formatting exception. anyone ?

That was a bit stupid of me .... DataFormatString="{0:t}"   :-(

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 Apr 2008, 09:50 AM
Hi,

Here is link on "DataFormatString"  that you can check for future reference:

http://www.telerik.com/help/aspnet/grid/RadGrid~Telerik.WebControls.GridBoundColumn~DataFormatString.html

Thanks,
Princy
Tags
Grid
Asked by
Pepijn Leenaers
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or