[DevExpress Support Team: CLONED FROM T705509: Exception is thrown when accessing the EditValue property]Hello Svetlana
Thanks, it works fine.
Could you tell me of some type of "Regular" or "RegEx" mask to validate that in a ButtonEdit, only allow alphanumeric characters and the hyphen "-" ?
If you wish to allow entering only alphanumeric characters and a hyphen, use the RegEx mask. We described what meta-characters we support in the Mask Type: Extended Regular Expressions help article. In particular, there you can see that "[0-9a-fA-F]" can be used to allow entering only letters and digits. The hyphen relates to Any Other Characters. That is why it can be added to your mask as is.
Please refer to the Mask Type: Extended Regular Expressions help article and let me know if you need further assistance.