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

How do we use DataEditFormatString

1 Answer 190 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chase Florell
Top achievements
Rank 1
Chase Florell asked on 19 Mar 2008, 04:15 AM
I want to be able to format my DateTime Column in the grid, How do we format it?

I have looked in the documentation and it says it is there, I just don't know how to use it.

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 19 Mar 2008, 12:33 PM
Hello Chase Florell,

Thank you for contacting me.

You format the text inside the data column by modifying the DataTextFormatString property of the GridViewDataColumn.

Refer to the following code snippet:

GridViewDateTimeColumn column = (GridViewDateTimeColumn)this.radGridView1.Columns["Date"]; 
column.DataTextFormatString = "{0:dd.mm.yy}"

We agree that our documentation needs improvement in some areas and are continuing our work to update it for the upcoming Q1 2008 release.

Do not hesitate to write me, if you have other questions.

All the best,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Chase Florell
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or