I want to size a panel to contain a label followed by a PropertyGrid such
that the panel is the sum of the heights of the two properties (so that the
PropertyGrid doesn't have to scroll, but also doesn't have any unused space
after it). How can I find out what the "natural" height of the PropertyGrid
would have to be set to to achieve that? (The scrollbar must somehow know
when to appear).

And also, as the user opens nested complex properties, how would I track the
change to the height?

Thanks for any help you can provide.

Barry
barry.bentley@bentley.com