I couldn't find a property to set that will always expand all property grid items, so now I'm trying to expand just one item when the property grid is loaded. I tried putting the Expand() call in the CreateItem event handler, but the item is always null. If I put the Expand() call in the ItemFormatting event handler, I am unable to collapse the item. Here is the code I'm using:
PropertyGridItem item = e.Item as PropertyGridItem;
if
(item.Label ==
"abc"
&& !item.Expanded)
{
item.Expand();
}