Posted 14 years ago
by Marcel Konnegen
![Avatar](https://secure.gravatar.com/avatar/15a3dbceed7ca25511117b8e66eccd48.jpg?s=64&d=identicon&r=g)
Hello Support,
we have a custom TypeDescriptorFactory in which we have overridden the GetProperties(object value, ...)method. In addition, we have a class in which we have properties that are decorated with custom attributes. What we now need is to implement a custom PropertyDataAccessor. We have created such a custom PropertyDataAccessor and inherited from PropertyDescriptorDataAccor. We wrap any PropertyDataAccessor from the base.GetProperties call and delegate each method call to the wrapped (ActiPro)-PropertyDataAccessor. Following is a short illustration:Now we have the problem, that the property grid is not updating, when we change the value of a property from code (some binding-problem possibly???). If we leave out the intermediate layer of our custom PropertyDataAccessor, then the Bindings work fine and the PropertyGrid updates correctly. How do we correctly implement a wrapper for an PropertyDataAccessorBase???
With regards
Marcel
we have a custom TypeDescriptorFactory in which we have overridden the GetProperties(object value, ...)method. In addition, we have a class in which we have properties that are decorated with custom attributes. What we now need is to implement a custom PropertyDataAccessor. We have created such a custom PropertyDataAccessor and inherited from PropertyDescriptorDataAccor. We wrap any PropertyDataAccessor from the base.GetProperties call and delegate each method call to the wrapped (ActiPro)-PropertyDataAccessor. Following is a short illustration:
public class Custom : PropertyDescriptorDataAccessorBase
{
public Custom(PropertyDescriptorDataAccessorBase wrap)
{
_custom = wrap;
}
public override IPropertyDataAccessor Parent
{
get { return _custom.Parent; }
}
...
}
With regards
Marcel