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
903
Format an integer column in hours:minutes format
posted

Hi,

In my application v1, I displayed data about appoitnements in a grid as a minutes value (integer)

My customer has me to display it and let it be modifiable as hh:mm

I don't find how to achieve that ?

Any though ?

  • 23930
    Offline posted

    Hello Yannick,

    I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.

    Thank you for using Infragistics Components.

  • 23930
    Offline posted

    Hello Yannick,

     

    Thank you for posting in our forums.

     

    What you could do in your case is to add an unbound DateTime column and hide your integer one. Then in the InitializeRow you will calculate the value of the DateTime column based on the value of the Integer column the first time the row is initialized and then vice-versa the next time the row is re-initialized.

     

    I have attached a sample demonstrating this approach.

     

    Please let me know if you have any additional questions.

    WG_IntegerToHHMM.zip