I really am getting my support monies worth. sorry guys , I am trying to resolve before posting!!
I have spent the morning reading the existing forum posts on this subject and the documentation, but nothing has helped so far.
I have an application which is required to be in different languages ( select-able by the user) however they want the date time columns to always be in the same format (Swedish Culture)
I am using "Thread.CurrentThread.CurrentUICulture.Name" for setting and checking which language I should be providing, however I want the date time columns in the grid to ignore this and always be same format.
I think because I am using unbound Gridview , the setting of the columns formatting does not work? (FormatString , FormatInfo etc) I am creating the grid by using "RadGridView1.MasterTemplate.LoadFrom(Callsreader)" and loading an SQLDataReader
The closest I found was this post...which shows having to change the culture in the datatable before setting to the Gridview. I cant do this with an SQLDatareader ( that I have found!) and I tried converting to using Datatables , however this started to cause numerous issues even without adding the convert Datatable part!
What is the way that should work? Is there a way to set the GridView UICulture to always be Swedish ? That would be an easy way!
Many thanks
Rob
I have spent the morning reading the existing forum posts on this subject and the documentation, but nothing has helped so far.
I have an application which is required to be in different languages ( select-able by the user) however they want the date time columns to always be in the same format (Swedish Culture)
I am using "Thread.CurrentThread.CurrentUICulture.Name" for setting and checking which language I should be providing, however I want the date time columns in the grid to ignore this and always be same format.
I think because I am using unbound Gridview , the setting of the columns formatting does not work? (FormatString , FormatInfo etc) I am creating the grid by using "RadGridView1.MasterTemplate.LoadFrom(Callsreader)" and loading an SQLDataReader
The closest I found was this post...which shows having to change the culture in the datatable before setting to the Gridview. I cant do this with an SQLDatareader ( that I have found!) and I tried converting to using Datatables , however this started to cause numerous issues even without adding the convert Datatable part!
What is the way that should work? Is there a way to set the GridView UICulture to always be Swedish ? That would be an easy way!
Many thanks
Rob