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

How to set Date FormatString in GridViewDataColumn Collection Editor

1 Answer 190 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tobe
Top achievements
Rank 1
Tobe asked on 15 Feb 2011, 11:04 PM
What value do I need to put in the FormatString textbox of the GridViewDataColumn Collection editor to make the output column a short date string?

My data source is a SQL Date type, not DateTime.  I've tried "{0:d}", "{0:dd-MM-yy}" but nothing seems to work.

My date still displays as "MM/DD/YY 00:00:00"

Any suggestions?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 18 Feb 2011, 08:50 AM
Hi Tobe,

Thank you for writing.

I have tested the described scenario and on my end it works as expected. See attached video for more details. Additionally, you can find more information about GridViewDateTimeColumn in this help article.

I hope you find this information useful. Let me know if you have any other questions.
 
All the best,
Stefan
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Tags
GridView
Asked by
Tobe
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or