unicode sorting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vojislav

    #1

    unicode sorting

    How can I sort datatable according to unicode? I set corret regional and
    culture settings but Basic .Net sorts according Ascii. It sorts letters with
    accents like without them.

    thank you in advance


  • Miha Markic [MVP C#]

    #2
    Re: unicode sorting

    Hi Vojislav,

    Are you talking about database side sorting or client side (.net?)

    --
    Miha Markic [MVP C#] - RightHand .NET consulting & software development
    miha at rthand com


    "Vojislav" <woya@zgop.co.y u> wrote in message
    news:c7q6ea$65c $1@news.eunet.y u...[color=blue]
    > How can I sort datatable according to unicode? I set corret regional and
    > culture settings but Basic .Net sorts according Ascii. It sorts letters[/color]
    with[color=blue]
    > accents like without them.
    >
    > thank you in advance
    >
    >[/color]


    Comment

    • Miha Markic [MVP C#]

      #3
      Re: unicode sorting

      Vojislav,

      You have two options to set sorting culture.
      If your DataTable is standalone (not part of a dataset) you'll have to set
      Thread.CurrentT hread.CurrentCu lture to appropriate culture.

      If your table is part of a dataset then you might set DataSet.Locale to a
      desired CultureInfo.

      HTH

      --
      Miha Markic [MVP C#] - RightHand .NET consulting & development
      miha at rthand com


      "Vojislav" <woya@zgop.co.y u> wrote in message
      news:c7q6ea$65c $1@news.eunet.y u...[color=blue]
      > How can I sort datatable according to unicode? I set corret regional and
      > culture settings but Basic .Net sorts according Ascii. It sorts letters[/color]
      with[color=blue]
      > accents like without them.
      >
      > thank you in advance
      >
      >[/color]


      Comment

      Working...