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
220
Input Mask for Time in format hhhh:mm
posted

Hi,

I need to enter a time in the format hhhh:mm to be entered into i a grid.

I tried setting the MaskInput Property of the Column to "nnnn:nn" entering the time works fine, but as soon as the AfterCellUpdate is fired the value is set to hhhhmm without the ":". I need the Value as a String.

Is there any way to accomplish this

Edit: The Grid is databound so i cant set the type property and I tried setting a format too without succeeding

Parents
  • 469350
    Offline posted

    Hi,

    I was going to test this out but I don't have enough information.

    What's the DataType of the column?

    You probably need to set the MaskDataMode on the column and tell it to include the literals.

    You might also want to take a look at MaskClipMode and MaskDisplayMode.

     

Reply Children