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

Give same behavior for dot and comma in GridViewDataColumn

1 Answer 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tiago
Top achievements
Rank 1
Tiago asked on 18 May 2012, 11:40 AM
Hello,

I have my application in "pt-PT" culture, and have this column.

<telerik:GridViewDataColumn IsSortable="False" IsFilterable="False" Header="Preço Unitário" DataMemberBinding="{Binding PrecoUnitario}"
DataFormatString="{}{0:C}" MinWidth="60" MaxWidth="100" HeaderCellStyle="{StaticResource estiloDaColuna}"/>

introducing "20.2", it places "202,00".
introducing "20,2" it places "20,20".

In "en-US" culture works well.

So, how can i give the same behavior for dot and comma?

Thanks

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 18 May 2012, 02:17 PM
Hello,

 Indeed the behaviour that you experience is a problem, but it is the expected one. Please take a look at this forum post where you could find a discussion about the decimal separators. The thread is for Silverlight, but the same is valid for WPF as well.


Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Tiago
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or