PropertyGrid expandable collection with combobox

Grids for WPF Forum

Posted 5 years ago by Brian
Version: 14.1.0602
Avatar

Hi,

I have a PropertyGrid that is bound to an object with a List<string> member. The CollectionDisplayMode is EditableInline. I've implemented a custom TypeDescriptorFactory to handle readonly properties and expandability. Does the PropertyGrid have support for an expandable collection where each child item is a combobox?

Thanks

[Modified 5 years ago]

Comments (1)

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

Hi Garvan,

I believe that is possible.  You mentioned you have a custom data factory.  If the IPropertyDataAccessor items you return specify a value for the ValueTemplateKey that refers to BuiltinEditors.DynamicValueTemplateKey, then it should pull that in.  That template has a ComobBox built in but make sure you also have our IPropertyDataAccessor return items in the StandardValues collection to pick from.  Those will become the ComboBox.Items.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.