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

GridViewDataColumn DataFormatString leading zero

3 Answers 472 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Think Tank
Top achievements
Rank 1
Think Tank asked on 17 Mar 2010, 10:35 AM
Hi,

May I know how to set the data format for a numeric field like ID with leading zeroes in the gridview? I tried using DataFormatString="{}{0:00000000}" but did not worked.

How can I also format decimal numbers to display with comma and two decimal numbers? For example 2350.2 would be displayed as 2,350.20

Thanks..

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 19 Mar 2010, 09:55 AM
Hi Think Tank,

We had a little bug with the DataFormatString, but we have fixed it and we will release a Latest Internal Build later today or on Monday. With the Latest Internal Build, the DataFormatString property should work properly.

Once you upgrade to the Latest Internal Build you will be able to specify all kinds of string formats.

If you want to learn how to define various string formats, please take a closer look at this article.

I hope this helps.

Greetings,
Ross
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Mark
Top achievements
Rank 1
answered on 05 Aug 2010, 01:55 PM
Which version of RadControls for ASP.net I have 2010Q1, but it seems to have been released prior to March 19th (the date of your answer).
0
Veselin Vasilev
Telerik team
answered on 05 Aug 2010, 02:11 PM
Hello Mark,

This thread (and the whole forum) is related to RadGridView for WPF. If you have any troubles with the ASP.NET Grid - please use the respective forum.

Thanks.

Greetings,
Veskoni
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Think Tank
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Mark
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or