I am using SelectedObjects to populate my grid, and using a ICustomTypeDescriptor to provide the list of properties (which are all PropertyDescriptors).
One of the properties of my object actually changes the object's collection of properties--the ICustomTypeDescriptor.GetProperties() will return a different list of properties. How can the ICustomTypeDescriptor signal to the grid to re-call GetProperties and update itself?
Or am I going down the wrong trail? I've just re-read the documentation and am thinking of a couple of other options:
Thank you!
Nate
One of the properties of my object actually changes the object's collection of properties--the ICustomTypeDescriptor.GetProperties() will return a different list of properties. How can the ICustomTypeDescriptor signal to the grid to re-call GetProperties and update itself?
Or am I going down the wrong trail? I've just re-read the documentation and am thinking of a couple of other options:
- Filters: Perhaps I could return all properties all the time, but use a filter to hide the ones I don't want displayed, based on the value of the one property that controls the list?
- Custom DataFactory: I don't think this will help, as I'm already able to use the ICustomTypeDescriptor.GetProperties to return the correct list of properties, and the DataFactory doesn't appear to provide any additional means of indicating that the list has changed.
Thank you!
Nate