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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Literal characters in MaskEdit cell

Thread ID:





15807 Jun 28,2004 01:13 PM UTC Jun 28,2004 01:49 PM UTC WinForms 1
Tags: GridControl
Lori S. Pearsall
Asked On June 28, 2004 01:13 PM UTC

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 01:49 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon