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
close icon

Hiding mask characters

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!

2 Replies

TO Ted Osberg August 26, 2004 04:42 PM UTC

I mean hiding the literal characters.


AD Administrator Syncfusion Team 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 = "";
	}
}

Loader.
Live Chat Icon For mobile
Up arrow icon