MaskCellType's MaskChar showing in spread non EditMode

Posted by: naveen-cerner on 8 September 2017, 3:23 pm EST

  • Posted 8 September 2017, 3:23 pm EST


    I am Using MaskCelltype in My Application, I am not setting MaskChar any where in my app. By default it is taking '_' Char as Mask char. I can see maskChar in cell when try to edit the cell(in editmode). As soon as i click on next cell, MaskChar in previous cell still showing.Actually it should not show when i come out of editmode. Is this spread behavior or an Issue?

  • Marked as Answer

    Replied 8 September 2017, 3:23 pm EST


    That is working as designed -- if the user types a partial value in the MaskCellType cell, then the parts of the mask showing the MaskChar will continue to show the MaskChar in those parts.

    If you want to prevent that from happening, you can handle the LeaveCell event and implement code to check for the case when the user has typed a partial value in the cell and set e.Cancel = true to keep the user in the cell. If you want to keep the user in edit mode in the cell, you can set FpSpread.EditMode = true.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels