Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
How to format TextColumn on XamGrid using Current CultureInfo object ?
posted

Hi, Infragistics guys,

I have a silverlight application with several usercontrols using xamgrids for showing query results purposes. Queries get datetime data in SQLServer format (mm-dd-yyyy hh:mm:ss). Currently I need show datetime data columns in ISO format (yyyy-MM-ddTHH:mm:ss) in all xamgrids and I do not want use FormatString property of TextColumn on xamgrids (because are a lot !!!)... Is possible set up tha XamGrid to use the datetime format from the current cultureinfo object ?

Note : I am migrating my application to WPF (Ig SL XamGrid to Ig WPF XamGrid), because I wrote in this forum thread...

Thanks in advance,

Javier Carreño

From Bogota, Colombia

Parents
No Data
Reply
  • 2180
    Offline posted

    Hello Javier,

    You can set a specific DateTimeFormat for the CultureInfo and then set this culture to the Thread.CurrentThread.CurrentCulture.

    I’ve attached a solution with WPF and Silverlight projects for your reference.

    Let me know if I may be of further assistance.

    FormatTextColumn.zip
Children
No Data