Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to: Convert a value entered by a user to a custom type

$
0
0
Let’s assume that you have a property of a custom type and want to edit it in the PropertyGridControl. To be able to convert a value entered by a user (for example, this may be a string value) to the custom type, use a TypeConverter class descendant. It can be applied using the TypeConverterAttribute attribute:
[C#]
[TypeConverter(typeof(MyTypeConverter))]publicCustomerValue{   get;   set;}

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>