Hi,
I implemented "ICustomTypeDescriptor" for getting properties for my model object. Binding works fine for the first level. But i am finding it difficult to bind the hierarchical data.
Each "Parent Object" has a "Child Object" and both has ICustomTypeDescriptor implementation for properties. While creating properties for the "Parent Object", i created a property (PropertyDescriptor) with PropertyType as "Child Object" type. But still the hierarchical layout is not created.
How to create hierarchical field layout in the grid when the DataModel is dealing with dynamic properties (ICustomTypeDescriptor implementation)?
It would be of a great help, if you can give me some sample code to do this.
Thanks,
Sreeram.
Its working for me. Some how i missed this small detail; I created the new property in "Parent Object" as a collection of parent objects and every thing lit up like a christmas tree :) . The hierarchical binding works fine.
Hi Sreeram,
Have you got any example code you could share to demonstrate how you get the grid to display data items implementing ICustomTypeDescriptor? I'm struggling to get the grid to display the custom properties I'm defining.
Thanks
Peter