Ignoring culture on DataGrid

M

Mark Gillespie

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.
 

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

Top