Hi,
1) Can you post a sample of this ? How do you define your array ? Is it something like :
1) Can you post a sample of this ? How do you define your array ? Is it something like :
_propertyGrid.SelectedObject = new MyObject()
{
MyArray = new string[3] { "Carl", "Julia", "Megan"}
};
public class MyObject
{
[ExpandableObject()]
public string[] MyArray
{
get;
set;
}
}
2) For List or Dictionnary, we use the CollectionControl, available with the arrow on the PropertyItem line. Opening it will let you add/remove/modify the List content. If you use ExpandableObject() attribute on a List Property, you will see List's public properties : Capacity and Count.