This example shows custom Property Editors that provide access to object fields with an email address or URL as clickable text.
To validate a URL, these editors use a combined RexEx
mask. The default regular expression is:
(((http|https|ftp)\://)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9\-\._\?\,\'/\\\+&%\$#\=~])*)|([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})
You can use it as is or modify it per your specific needs. Search for Regular Expression in MSDN for more information on how to do this. A double click opens a URL in DetailView of the WinForms project for end-user convenience.
These editors are created for learning purposes only. You can extend them or create your own editors to meet your business needs.
- Property Editors
- Customize a Built-in Property Editor (Blazor)
- Implement a Property Editor Based on a Custom Component (Blazor)
- How to: Display an Integer Property as an Enumeration
- How to: Disable Property Editors Based on a Business Rule
(you will be redirected to DevExpress.com to submit your response)