I use PropertyGrid in WinForms. Can I change the default CollectionEditor? I can show custom CollectionEditor by Editor attribute like this:
[Editor("MyProgram.CustomCollectionEditor , MyProgram, Version=1.0.0.0, Culture=neutral, PublicKeyToken=neutral", typeof(UITypeEditor))]
But I don’t want to use it for all properties.
You can use
EditorAttributeon a property so only properties with the attribute applied to has a custom editor.I think How to: Take control over the Collection Editor’s PropertyGrid may be helpful in what you are trying to accomplish.