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
105
Version 10.3 Wingrid DateTime Column value getting changed with Local settings
posted

I am using Wingrid 10.3 ( with latest service release). I have binded grid to a binding list, which has Value Date ("DateTime" ) public property.  Though my object value retrieved from database is "12/02/2010", Grid is displaying this date with Local regional settings.

I mean if I change my time zone to PST ( US pacific time zone ) from CST, Grid is changing the Date on the grid. How can I prevent the grid to stop doing that. How can I enforce the grid not to use any local regional settings.   When I assign a date value to the grid, Why is changing ? Please advise, is there a property  on the grid I can use to stop doing this ?

 

Parents
  • 469350
    Offline posted

    The grid does not change the time zone of your dates. Something else in the code must be doing this.

    What kind of Data Source are you using?

    Are you sure that the date and time in the data source are returning what you think they are?

    What happens if you button a button on the form and display the ToString of the value and pass in the short date format?

     

Reply Children