Good try but not enough for 2 reasons:
1. Do you know if we can add descriptions instead of seeing array index as the caption?
2. If I declare an array of Object, the grid is not editable:
Dim a(3) As Object
a(0) = Color.Red
a(1) = Date.Today
a(2) = "Eric Moreau"
a(3) = 12
PropertyGrid1.SelectedObject = a
>Hi!
>
>Can you use this for anything?
>
>
>
>this.Controls.Add(propertyGrid1);
>
>int[] ia = new int[10];
>
>for(int i = 0; i < 10; i++)
> ia[i] = i;
>
>propertyGrid1.SelectedObject = ia;
>
>
>
>
>Regards
>
>-Filip
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com