unicode sorting

V

Vojislav

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
 
M

Miha Markic [MVP C#]

Hi Vojislav,

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

Miha Markic [MVP C#]

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.CurrentThread.CurrentCulture to appropriate culture.

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

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top