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

DataFormatString doesn't want to format

1 Answer 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brendan Vogt
Top achievements
Rank 1
Brendan Vogt asked on 08 Jul 2008, 08:20 AM
Hi,
My DataFormatString doesn't want to format.  I'm not sure what is wrong, I formatted another date field and it also didn't format.  What am I doing wrong?

<radG:GridBoundColumn
   DataField="DepositAmount"
   DataType="System.Decimal"
   HeaderText="Deposit Amount"
   DataFormatString="{0:0,0.00}"
   UniqueName="DepositAmount"
   ItemStyle-HorizontalAlign="Right" />

The value that come in from the XML file is 1528442.53.  It should be formatted to 1,528,442.53 in the grid column.

All help will be appreciated!!

Thanks
Brendan

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 08 Jul 2008, 08:55 AM
Hi Brendan,

I don't think that this format is correct. Please visit these links for more info about number formats:
http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx
http://msdn.microsoft.com/en-us/library/0c899ak8.aspx

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Brendan Vogt
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or