Hi,
we have in our projects generic datasources and we don't know ho to get the PropertyDescriptorCollection from our hierarchical datasource (if the grid has more than one field layouts, each fieldlayout has a different PropertyDescriptorCollection).
How can we do this???
All PropertyDescriptorCollection source code stuff from Infragistics is internal.
best regards
Hello,Can you please give us more information on what you are trying to achieve by getting a PropertyDescriptiorCollection from the Fieldlayout?
we need the PDC for setting Fields invisible by PropertyDescriptors IsBrowsable Flag or setting the ValueConverter by the TypeConverter.
I believe we natively support the BrowsableAttribute for setting the Visibility of the auto generated fields. For TypeConverter you can use the first record associated with a specific layout and get the data item type or the generic type of the strongly typed collection (if you are using one).
> I believe we natively support the BrowsableAttribute for setting the visibility of the auto generated fields.Yes maybe but we have generic DataSources that are implemented at runtime with those PDCs. In the PDs, we implement the IsBrowsable property because we hace a server side dynamic user access control to control this.> For TypeConverter you can use the first record associated with a specific layout and get the data item type or the generic type of the stronglytyped collection (if you are using one).And what do we do when the DataSource is empty? This is not a good way to get to this information.Why PDC is not just a public property is at the Field layout that would help a lot and is not too bad, she can be readonly!
I also agree that this would be a nice property to have. I have submitted this in our system and would recommend you to do it as well to raise its priority. You can do this here.