Hi, I saw another thread where you were talking about dynamically changing the IsReadOnly property, but it doesn't seem to work...
I have a class as below:
public class PropertyDescriptorDataAccessorEx : PropertyDescriptorDataAccessor
{
public new bool IsReadOnly
{
get
{
return base.IsReadOnly | b;
}
set
{
b = value;
this.Refresh();
base.OnPropertyChanged("IsReadOnly");
base.OnPropertyChanged("IsReadOnlyInternal");
}
}
protected override bool IsReadOnlyInternal
{
get
{
return base.IsReadOnlyInternal | b;
}
}
}
I insert items dynamically and save the PropertyDescriptorDataAccessorEx refs for two items.
When I get a change notificaition on another item, I call the IsReadOnly = false on the saved refs.
It doesn't redraw the item as read only. Am I missing a step?
I have a class as below:
public class PropertyDescriptorDataAccessorEx : PropertyDescriptorDataAccessor
{
public new bool IsReadOnly
{
get
{
return base.IsReadOnly | b;
}
set
{
b = value;
this.Refresh();
base.OnPropertyChanged("IsReadOnly");
base.OnPropertyChanged("IsReadOnlyInternal");
}
}
protected override bool IsReadOnlyInternal
{
get
{
return base.IsReadOnlyInternal | b;
}
}
}
I insert items dynamically and save the PropertyDescriptorDataAccessorEx refs for two items.
When I get a change notificaition on another item, I call the IsReadOnly = false on the saved refs.
It doesn't redraw the item as read only. Am I missing a step?