Basically, the best approach would be to use the Browsable attribute. Setting it to false, would make RadPropertyGrid skip the respective property. However, I am not sure whether you can easily do this, as you have mentioned some third party assembly. The other, in my opinion acceptable, approach is to maintain some data structure (i.e. a Dictionary) with the list of properties that should be displayed for a certain type. Then, in the AutoGeneratingPropertyDefinition handler the PropertyDefinitions, which DisplayName does not match any one listed in the data structure, gets canceled, by setting args.Cancel = true.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>