Hello All,
I'm using the bellow code in Initialize Layout to display a mask i.e. ###-###-#### in phone number column but that doesn't seems to work:
e.Layout.Bands[0].Columns["phoneNumber"].MaskInput = "###-###-####";
e.Layout.Bands[0].Columns["phoneNumber"].MaskDataMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.Raw;
e.Layout.Bands[0].Columns["phoneNumber"].MaskClipMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.IncludeLiterals;
e.Layout.Bands[0].Columns["phoneNumber"].MaskDisplayMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.IncludeBoth;
What's wrong with it?
If the data type of the phone number is string, I think it uses a text editor by default, in which case you would have to explicitly set the Editor property to an Infragistics.Win.EditorWithMask. Come to think of it, I'm not even certain you can use masking with string data.
You can use masks with string data, but you cannot Format a string.
MaskInput only applies to input in the cell, so it will only affect the cell currently in edit mode. Do you have a cell in edit mode?
It's datatype is string and the cell is in edit mode but i can't see any masking while i type the number?