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.
Syncfusion Feedback

Literal characters in MaskEdit cell

Thread ID:

Created:

Updated:

Platform:

Replies:

15807 Jun 28,2004 01:13 PM UTC Jun 28,2004 01:49 PM UTC Windows Forms 1
loading
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.

CONFIRMATION

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.

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

;