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.
Up arrow icon