Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / November 2007

Tip: Looking for answers? Try searching our database.

DataSet.xsd and Locale

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dimitris Milonas - 29 Nov 2007 07:39 GMT
Hello,

When I build a DataSet with the DataSet Designer (DataSet.xsd) every
DataTable has the property "Locale" which is set (I guess) to the current
collate of the table of the SQL Server (I'm using MSSQL). I want to build a
web application which is language neutral or translated in two or more
languages.
Is this property of the DataTable in the Designer going to be a problem? If
it is a problem, then how to overcome it?
At the beginning, I wrote "I guess" because I really don't where this locale
property came from? The MSSQL has collate sequence for "Latin1" for Western
European languages but in the DataSet Designer the "locale" property of the
DataTable doesn't have any value of "Latin1" instead it lists all the
different countries and languages.

Regards
Dimitris Milonas
Bryan Porter - 29 Nov 2007 14:09 GMT
Dimitris,

The DataTable Locale property contains a CultureInfo that describes how
strings should be compared within the table. When you begin to localize your
application, one of the things you would probably want to do is to set the
Locale property to the current users locale when you create an instance of
the object.

Here is the relevant documentation:

http://msdn2.microsoft.com/en-us/library/system.data.datatable.locale(VS.71).aspx

Signature

Regards,

Bryan Porter
http://www.bryanporter.com/

"What A Horrible Night To Have A Curse!" - S. Belmont

> Hello,
>
[quoted text clipped - 13 lines]
> Regards
> Dimitris Milonas

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.