I have custom collection class and a custom TypeConverter that inherits ExpandableCollectionConverter:
/// <summary>
/// A collection of display object for property grids
/// </summary>
[TypeConverter(typeof(DisplayCollectionConverter))]
public class DisplayCollection<T> : Collection<T>
/// <summary>
/// Converter class for DisplayCollection
/// </summary>
public class DisplayCollectionConverter : ExpandableCollectionConverter
I use this for all types of collection based properties that I show in the grid and it works great when PropertyGrid.SelectedObjects = object[1] but as soon as I have multiple objects selected (all of the same concrete type) any properties that use this DisplayCollection will not allow me to add/create new items, the + disappears for them.
What do I need to do to get the grid to allow me to still Add items to these collection properties? I understand this can get complicated if the collections differ between the selected items, but in a very simple case of the collections being empty how can I get the Add (+) enabled to add items for multiple objects? Of course the next question will be how to handle differing collections (merging)?
Thank you for any help