Search code examples
asp.netgridviewculture

How can I set dot as decimal separator in GridView?


I have some BoundFields that are bonded to double values. If I enable editing on the GridView I get the following example:

Input string was not in a correct format.

I want that in edit mode the decimal separator be "." instead of "," but I can't get it work.


Solution

  • I set in the Page directive the Culture to "en-US" and it's working.