My application uses a Treeview to represent the hierarchy of an underlying object model. Users can add / delete nodes in the tree and use a PropertyGrid for managing the object properties of a selected node's TAG data (an object in the model). The treeview provides a convenient way to navigate (up and down) the objects and the propertygrid a nice way to categorize/modify the properties. It works great when staying within the object hierarchy, but when trying to get to an object in one tree branch from another branch outside, I can't quite get it.
As example:
I have two Nodes in the tree in different branches:
NodeOne.TAG is a collection of objects that the user can add items to.
NodeTwo.Tag is an object that has a property type of items in the first Node.tag (collection).
My issue is trying to create a TypeConverter for NodeTwo.Tag.property that can:
-Create a StandardValuesCollection based on the items in the collection to show in the dropdown for the property.
-Update the property with the value from selected object that is referenced in the list.
I can create a list of names from the collection for the StandardValuesCollection in the typeconverter but can I attach to the selected object?
Any feedback is appreciated. Thanks!
As example:
I have two Nodes in the tree in different branches:
NodeOne.TAG is a collection of objects that the user can add items to.
NodeTwo.Tag is an object that has a property type of items in the first Node.tag (collection).
My issue is trying to create a TypeConverter for NodeTwo.Tag.property that can:
-Create a StandardValuesCollection based on the items in the collection to show in the dropdown for the property.
-Update the property with the value from selected object that is referenced in the list.
I can create a list of names from the collection for the StandardValuesCollection in the typeconverter but can I attach to the selected object?
Any feedback is appreciated. Thanks!