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
690
error on MaskInput on grid cell
posted

 

Hi all,

I am facing a problem using MaskInput on grid cell. I am applying as-
 ultraGrid1.DisplayLayout.Bands[0].COLUMNS["cBillUnits"].MaskInput = "hh.mm":U;

defalut value = "00.00".
when I enter this cell, all characters are selected (00.00) after selection I press key 5 that time this cell show _5.__, when I want to leave that cell show a info message --

Data Error
---------------------------
Unable to update the data value: Value in the editor is not valid.
---------------------------
OK  
---------------------------

And after pressing ok that time cell show 05.__ and does not allow leaving the cell.

My requirement is, if I want to enter only hours it should take minutes as 05.00 automatically and allow to me leave the cell.

Or

When I enter _5.5_      its should take as 05.50

Please suggest solution.
Thanks in advance.

 

  • 1803
    posted

    track it in the cell data error event ,

    Since u have given a mask format ,the cell expects a similar format of value,

    better is like use before exitedit mode to keep track of it

    and change the replace the spaces with 0..