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.

Hiding mask characters

Thread ID:





18258 Aug 26,2004 12:36 PM Aug 26,2004 12:57 PM Windows Forms 2
Tags: GridControl
Ted Osberg
Asked On August 26, 2004 12:36 PM

Is there a way to hide the mask characters on a celltype of type maskedit? I don''t want the user to see the characters until they actually start entering data. Thanks!

Ted Osberg
Replied On August 26, 2004 12:42 PM

I mean hiding the literal characters.

Administrator [Syncfusion]
Replied On August 26, 2004 12:57 PM

There is no property setting that will do this. But you can try handling PrepareViewStyleInfo and do something there.
private void gridControl1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
	GridCurrentCell cc = this.gridControl1.CurrentCell;
	if(e.Style.CellType == "MaskEdit" && (e.RowIndex != cc.RowIndex || e.ColIndex != cc.ColIndex))
		e.Style.MaskEdit.Mask = "";


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.