Displaying properties of an interface member

Grids for WPF Forum

Posted 11 years ago by James
Version: 12.1.0562


I have an object displayed in the property grid which has a member defined as an Interface. None of the properties of this object appear in the grid. Is this expected and is there any way around this or do properties have to be concrete types to display?



Comments (2)

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

Hi James,

I don't believe type reflection or the type descriptor (both kinds are used by the related built-in data factories we provide) return explicitly implemented interface properties by default.  You'd probably need to make the properties public normal ones to have our data factories pick them up.

The other option is to create your own data factory, which would be more work.

Actipro Software Support

Posted 11 years ago by James

Thanks. I've managed to resolve it now. We already had our own data factory, so fortunately it wasn't too much work.

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

Add Comment

Please log in to a validated account to post comments.