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

[Solved] Number Formatting in Datagrid

1 Answer 157 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
JungTae
Top achievements
Rank 1
JungTae asked on 18 Nov 2010, 05:55 PM

Hello Telerik team I'm curretly using Silverlight 3 dlls on VSTS 2008 SP1, and I am using both GridvViewDataColumn and textblocks within some of my columns. I need to format my numbers which are being displayed in those columns. However
the problem is that in my datagrid a large number will display as :120242866 (for example)

I would like to display as: 120,242,866 (comma seperated for every 3 significant digits)

Is there a good way to achieve this? (preferably from XAML but changing settings in the C# code is fine)

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 19 Nov 2010, 08:16 AM
Hello,

 In Silverlight 4 you can use StringFormat of the bindings however in Silverlight 3 the only way to achieve this will be IValueConverter. 

Kind regards,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
JungTae
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or