Thank you for writing back.
Note that the Mask
property is a string of characters that constrains the user input, not the value set programmatically by the developer. GridViewMaskBoxColumn
as an editor, but this editor is not initialized when adding rows programmatically. Hence, if the cell value does not match the mask, after activating the editor, its value will be empty. One possible solution is to include "-" when adding the rows (e.g. "AAAA-AAAA-AAAA
"). An alternative option is to simulate value changing by using the editor. Thus, you will force the editor to validate its value according to the Mask
sender, EventArgs e)
i = 0; i < 4; i++)
.radGridView1.ActiveEditor.Value = initialValue;
I hope this information helps. If you have any additional questions, please let me know.