Inherit a new class from the CollectionEditor
and override the GetEditStyle
to return None
to prevent the "..." button from showing.
Also unfortunaly you can't add an Add
button using the standard propertygrid. You can choose from "...", down arrow or no button.
class CustomEditor : CollectionEditor
{
public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
{
return UITypeEditorEditStyle.None;
}
}
You can apply this new editor the propery using the following attribute:
[EditorAttribute(typeof(CustomEditor), typeof(UITypeEditor))]