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
1290
Datetime field in WinGrid not displaying time
posted

Hi,

 

I'm binding a custom entity object to my ultragrid, in which, one of the columns is of Datetime type. I have defined the schema manually, but it doesn't display the time, it only shows the date.

I tried changing the DataType of the schema from System.String to System.Datetime, but it gets resetted back to System.String each time I run my application.

Please assist, thanks!

Parents
  • 5520
    Verified Answer
    posted

    you can adjust the format of the column with :

    ultraGrid1.DisplayLayout.Bands[0].Columns[1].Format = "DD/MM/YYYY hh:mm";

    Hope this helps

Reply Children
No Data