IsReadOnly not propagate to the payload request when the DataObjects collection changed

Grids for WPF Forum

The latest build of this product (v2018.1 build 0674) was released 2 months ago, which was before this thread was created.
Posted 11 days ago by Julien Audran
Version: 18.1.0673



We encountered a problem with IsReadOnly and the collection changed event in the DataObjects.

Repro steps:

  • Bind an ObservableCollection to the DataObjects with an object within and IsReadOnly set to false (Default value).
  • Change IsReadOnly to true
  • Remove/Add an object in the ObservableCollection
  • The property grid refreshes but the request payload still has IsReadOnly set to false since the collection changed event does not trigger an update of IsReadonly in the request or invalidate it.

We did manage to fix the problem (after looking at the code) by listening to any collection changed in the DataObjects and using reflection to call the private InvalidateRequestPayload of the PropertyGrid to rebuild it with the correct IsReadOnly value.

Indeed the OnDataObjectsCollectionChanged called only RequestRefresh.




Julien Audran

Comments (2)

Answer - Posted 11 days ago by Actipro Software Support - Cleveland, OH, USA

Hi Julien,

Thanks for reporting this.  I believe we fixed it last week for the next maintenance release, with this release note:

Fixed a bug where new collection items in PropertyGrid might not appear read-only when the PropertyGrid.IsReadOnly property is set to true.

We hope to have the next maintenance release out later this month.

Actipro Software Support

Posted 10 days ago by Julien Audran



Thanks very much, we will have a look when it's released.




Add Comment

Please log in to a validated account to post comments.