This is a migrated thread and some comments may be shown as answers.

PropertyGrid Date en-GB Culture

1 Answer 109 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Chris Gethin
Top achievements
Rank 1
Chris Gethin asked on 12 Apr 2012, 03:35 PM
Hi,

I am using a RadPropertyGrid and have set the SelectedObject to be an object with a DateTime property. I would like this DateTime property to be displayed using en-GB culture (formatted as dd/MM/yyyy) but I cannot find a way to change this from the default MM/dd/yyyy.

I assume that I'm missing something fairly obvious! Any help would be much appreciated.

Thanks,

Chris.

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 17 Apr 2012, 03:08 PM
Hello Chris,

Thank you for writing.

RadPropertyGrid uses the culture of the current UI thread to format values. You can change it and all values will be formatted according to the culture you set. As an alternative, you can use the ItemFormatting event to format values. You can read more about formatting the property grid items in our online documentation - Item Formatting.

I hope that you find this information useful. Should you have further questions, I would be glad to help.
 
Greetings,
Ivan Petrov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
PropertyGrid
Asked by
Chris Gethin
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or