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 / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Ignoring culture on DataGrid

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark Gillespie - 10 Mar 2008 18:33 GMT
Hi, I have a C# usercontrol, that contains a datagrid, attached to a
dataset with XML schema.  The host application uses globalisation to
set the locale, and my usercontrol sees this change, and makes changes
to the data in the dategrid.

The problem is, decial numbers are changed from xx.xx to xx,xx when
you use some locale (French, German for example).  Whilst the
underlying data is still writted to XML correctly, it causes problems
in our UI, as all our controls do not work this way, and the rule is
decials are always entered using dot notation.

How can I get my datasource to work correctly?  I have tried setting
the locals on the callback when the locale changes, to "en-gb", but it
does not help.  I think it's the UI culture thats the problem, not the
underlying data,

Ran out of ideas!!!

Any help appreciated.
Pipo - 10 Mar 2008 21:44 GMT
Did you tried the System.Globalization.CultureInfo.InvariantCulture??

> Hi, I have a C# usercontrol, that contains a datagrid, attached to a
> dataset with XML schema.  The host application uses globalisation to
[quoted text clipped - 15 lines]
>
> Any help appreciated.

Rate this thread:







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.