I have a GridControl from Devexpress. For one column of this grid is given columnedit: repositoryitemtextedit. The table contains document types and numbers. Among the types there is a birth certificate. A birth certificate has the following format:
- Series: Roman letters (in the Latin register), two letters in Cyrillic.
- Number: six digits
- Example: XXXVЦФ123456
I try to set the mask as follows
repForDocNum.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Regular; repForDocNum.Mask.EditMask = "(^[XMVIL]+)\\s([А-Я]{2})\\s($\\d{6})"; Working works, but clumsily - when entering a table cell instead of beautiful underscores, part of this regular expression is shown.
The question is how to make an intelligent input mask consisting of 3 parts separated by a space.
