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

[Solved] Format column in RadGrid!

1 Answer 123 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pham
Top achievements
Rank 1
Pham asked on 27 Mar 2013, 03:48 AM
Hi everybody!
I have a problem. I want to display information to radgrid. I need format data but have a problems. Example :
I do:
2123244  I formated:  2123244.00
7424 I formated: 7424.00
1.22 I formated: 1.22
But I need:
2123244 I need format: 2 123 244
7424 I need format: 7 424
1.22 I need format:  1.22
(All in a radgrid)
Have you any ideas?
Thanks you very much!

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 29 Mar 2013, 05:19 PM
Hello,

You could use a custom numeric format string as the following one.
<telerik:GridNumericColumn DataField="Column4" HeaderText="Column4" DataFormatString="{0:# ### ###.##}"></telerik:GridNumericColumn>

Greetings,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Pham
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or