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

Format GridCalculatedColumn as currency

3 Answers 126 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
jamesh
Top achievements
Rank 1
jamesh asked on 14 May 2008, 04:57 PM
I have a GridCalculatedColumn with dataformatstring as currency but it seems not working

                            <telerik:GridCalculatedColumn DataType="System.Double"
                            DataFields="Quantity, UnitPrice" Expression="{0}*{1}"
                            HeaderText="Line Total" UniqueName="LineTotal" ItemStyle-Width="100"
                            DataFormatString="{0:c}" ItemStyle-HorizontalAlign="Right"
                            HeaderStyle-HorizontalAlign="Right">
                            </telerik:GridCalculatedColumn> 

Data on grid shows as "1100.0000". I want it displays as "$11,000.00".  Please help.


3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 15 May 2008, 06:43 AM
Hi jamesh,

I tried this and everything worked fine - you can check the attached example.

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Scott Topiol
Top achievements
Rank 1
answered on 16 Jul 2008, 07:12 PM
I have the same problem. It seems it's only occurring when GridCalculatedColumn is used in the GridTableView.
0
Pavel
Telerik team
answered on 18 Jul 2008, 02:00 PM
Hello Scott,

I have prepared a small sample that uses GridCalculatedColumn inside GridTableView. Give it a try and let us know what you think.

Regards,
Pavel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
jamesh
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Scott Topiol
Top achievements
Rank 1
Pavel
Telerik team
Share this question
or