Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 19th, 2007, 08:45 AM
Registered User
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to sort order in local language.

hi all,

i have created a windows database application in .net 2.0..
i am retrieving data from SQL Server 2005 database and displaying in DataGridView.
In DataGrid View i have changed font style of GridViewCell to "Hindi" (a local language).
Now i want to sort DataGridView on basis of Hindi because it is displaying data in hindi, but in database i have english text.
I am using DataGridView sorting but it is sorting only on basis of english text.
How can i sort it on the basis of Hindi text.

thanks in advance...



 
Old July 21st, 2007, 12:51 AM
Authorized User
 
Join Date: Sep 2004
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, I think the easiest way is to get the data from the database sorted in the Hindi rules by using a collation.
http://msdn2.microsoft.com/en-us/library/ms188385.aspx
http://msdn2.microsoft.com/en-us/library/ms184391.aspx

Greetz,

Geert

http://geertverhoeven.blogspot.com
 
Old July 21st, 2007, 01:54 AM
Registered User
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi geert,

thanx for your reply...
collation works only if i have unicode (hindi text) values in database but in my case..i am storing english text in Database...but i have just changed the font of Cell in DataGridView.....so in DataGridView it is showing hindi....so do we have any way to sort our DataGridView on the basis on hindi text....

looking forward for your reply....








Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic sort order or sort datatype kapy_kal XSLT 2 September 18th, 2007 02:10 PM
sort recordset in different order pablohoney Classic ASP Databases 0 December 29th, 2005 08:32 PM
Sort order Question Tere Crystal Reports 1 February 14th, 2005 03:18 PM
Access 2K Sort Order rgerald Access VBA 0 August 12th, 2004 10:37 AM
how to incorporate local language gumnam VB Databases Basics 0 August 21st, 2003 12:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.