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

Validation & Culture

1 Answer 8 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dom
Top achievements
Rank 1
Dom asked on 02 Dec 2011, 11:29 PM
In our application, we force the decimal culture to "."

However we have a problem with the radgridview, it doesn't seem to take that into account, and seems to take the language culture instead.

Our application can be in french or english.

When I'm in french and I wanna enter a number into the grid, it accepts 0,01 and shows me : 0.01 if I try to enter 0.01 it says it's not in the correct format.

If I'm in english, and i enter 0.01, it shows 0.01 if I try 0,01 it will put 1

So even if i do this,

Thread

 

 

.CurrentThread.CurrentCulture.NumberFormat.NumberDecimalSeparator = ".";

it doesn't seem to affect when I'm editing a radgridview but it seems to work when I write something in a TextBox.

So any way to force radgridview to use . for number or any other culture change we want separate from the language?

Thanks
Dom

 

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 07 Dec 2011, 03:15 PM
Hi Dom,

 Please take a look at this forum post where you could find a discussion about the decimal separators.

Best wishes,
Didie
the Telerik team

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

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