PropertyGrid Columns Width/Ratio

L

Leonid Kunin

I can change size/ratio between the first (Label) and the
second (Value) columns in the property grid using mouse
or Ctrl-Left/Right arrow shortcuts. This is great! But
now I want to save current ration/size so I could restore
it when the application is restarted.
In order to do so I need to receive an appropriate
notification, get current width ratio or size, set the
desired value. Note that Visual Studio .NET property
views do preserve these settings.
Internal PropertyGrid gridView has properties such as
LabelWidth, LabelRatio, InternalLabelWidth and others
that perhaps could be used via reflection. Is there any
better way to do this?
Thanks for your help,
Leonid
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top