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
4160
Time input not accepted
posted

Hello

I have a grid bound to a dataset, and one of the columns is of type TimeSpan. When editing a cell's value to this column, I type for example "10:30" and the value is rejected -calified as not valid. The MaskInput property is empty, by the way. What could be wrong?

Thanks a lot.

Parents
  • 469350
    Offline posted

    I'm not sure the grid can deal with a TimeSpan object. I'm surprised it lets you edit at all. Maybe you need to set the Style property on the column? Or perhaps you need to enter more digits. The default output of the ToString method of a TimeSpan inclues 6 digits if I am not mistaken, so you would need to enter "10:30:00".  

Reply Children