We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Literal characters in MaskEdit cell

Thread ID:





15807 Jun 28,2004 09:13 AM Jun 28,2004 09:49 AM Windows Forms 1
Tags: GridControl
Lori S. Pearsall
Asked On June 28, 2004 09:13 AM

Is there a way to specify that the literal characters in a mask shouldn''t be dislayed if the cell has no value? Thanks as always!

Administrator [Syncfusion]
Replied On June 28, 2004 09:49 AM

One way you can try do this would be to handle PrepareviewStyleInfo. If e.Style>CellType is MaskEdit and e.Style.Text is empty, you could set e.Style.MaskEdit.Mask = "". (Or you could change e.Style.CellType = "TextBox" or something.) You also may want to check if the e.RowIndex and e.ColIndex point to teh current cell or not. In that case, you would not want to make any changes so the user would see the mask when it is the current cell.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.