I have a simple data grid that I am binding to an ObservableCollection<> of objects. These objects have two string properties. I have defined and registered a type description provider, implemented a custom type descriptor, and custom property descriptor
for these objects.
At runtime, when I set AutoGenerateColumns="True" it successfully calls the GetProperties() on my type descriptor and returns back a PropertyDescriptorCollection with 3 property descriptors (2 ReflectPropertyDescriptors for the 2 string properties
defined on the class and 1 custom property descriptor that I added). So far so good - the columns do in fact get auto-generated and the column header properly reflects the property descriptor name.
However, the GetValue() method on the custom property descriptor never gets called. Consequently, the column for the custom property descriptor has no data.
Do I have to do something extra to get it to use the property descriptor's data?
Thanks for any input or suggestions.