
When populating a PropertyGrid via SelectedObject, my understanding is that the correct way to specify my desired editor for a given property is to mark it with the Editor attribute, i.e.:
using ActiproSoftware.Windows.Controls.PropertyGrid.Editors;
[Editor(typeof(ComboBoxPropertyEditor), typeof(PropertyEditor))]
public bool TestValue { get; set; }
That works fine - however, how would I specify the editor for objects contained in an array property? For instance:
using ActiproSoftware.Windows.Controls.PropertyGrid.Editors;
bool[] testValue = new bool[20];
[Editor(typeof(ComboBoxPropertyEditor), typeof(PropertyEditor))]
public bool[] TestValue { get { return testValue; } set{ testValue=value; } }
This will show a ComboBox on the PropertyGrid line listing the name of the array itself - whereas I'm trying to get a ComboBox for each boolean within the array?