Dropdown list with numbers

Grids for WPF Forum

Posted 13 years ago by kyy8080
Hi all,
i want to display the numbers for my property in dropdown list of the propertygrid. In all examples is used always the enumeration, that used the strings to display, but not the numbers. Is there any way to display the number in dropdown list without to create a custom typeconverter?

Best regards

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA

You would either have to create a custom TypeConverter for your enumeration or build a custom property editor. But the latter case isn't as straight forward.

If you are leveraging our EnumEditBox from our Editors for WPF product, then could use the UseDescriptionAttributes property. In this case, you'd only have to decorate your enum values with an appropriate DescriptionAttribute.

Actipro Software Support

The latest build of this product (v24.1.2) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.