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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hiding mask characters

Thread ID:





18258 Aug 26,2004 04:36 PM UTC Aug 26,2004 04:57 PM UTC WinForms 2
Tags: GridControl
Ted Osberg
Asked On August 26, 2004 04:36 PM UTC

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 04:42 PM UTC

I mean hiding the literal characters.

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

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.

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