Formatting Numbers By Culture

3 posts, 0 answers
  1. Luke Daugherty
    Luke Daugherty avatar
    19 posts
    Member since:
    Jun 2011

    Posted 13 Mar 2014 Link to this post

    Sorry if this is answered elsewhere, but I have combed the forum, and doc and not found an exact answer. For dates this was easy. I just set the columns DataFormatString to Thread.CurrentThread.CurrentCulture.DateTimeFormat.LongTimePattern. But the Thread.CurrentThread.CurrentCulture.NumberFormat does not appear to have any complete patterns that can be used here. All I want is something like 1.234 displaying as 1,234 if the CurrentCulture's format decimal place is comma.

    Also, why isn't this automatic? I did nothing to get ListView to display correctly. Why wouldn't the default behavior use the Culture's format for each type given to the column and save the user the trouble...

    Luke Daugherty

  2. Yoan
    Yoan avatar
    1051 posts

    Posted 18 Mar 2014 Link to this post

    Hello Luke,

    The formatting of RadGridView is language specific. In order to have the current culture settings respected, you can set the IsLocalizationLanguageRespected property of RadGridView to False. Please check this help article for a further reference.


    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

  3. DevCraft R3 2016 release webinar banner
  4. Luke Daugherty
    Luke Daugherty avatar
    19 posts
    Member since:
    Jun 2011

    Posted 18 Mar 2014 in reply to Yoan Link to this post

Back to Top