quick request for PropertyDescriptorDataAccessor()

Grids for WPF Forum

Posted 9 years ago by SledgeHammer01
Version: 10.1.0521
Avatar
Hi,

In 2010.1, you updated the constructor for PropertyDescriptorDataAccessor() to allow for:

_category.Accessors.Add(new PropertyDescriptorDataAccessor(fp, "FieldMin"));

Can you add another few params to allow for overriding DisplayName and Description? If not specified, fallback to the [DisplayName], [Description] attributes as you do now?

Reason being is we are binding to a generic object property that can change types through boxing / unboxing. That part actually works fine, the editors automatically switch, we just want a more descriptive DisplayName and Description :).

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hello,

You can actually implement this yourself. You'd just create a class that derives from PropertyDescriptorDataAccessor, and override the DisplayNameInternal and DescriptionInternal properties.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 10 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.