Finding Grid Positions in a Property Grid


J

James CC

Hi there,

In C Sharp, I want to find the Y position (center, or top and bottom would
do) of the individual rows of a PropertyGrid. Is that possible?

In other words, I want to be able to find out the Y position, relative to
the top left of either the PropertyGrid or its container, of the properties
listed, for each item listed, or even better for an individual item.


I did find I could do the following to get something :

Point p = new Point(0,0);
Control ctrl = propertyGrid1.GetChildAtPoint(p);

The ctrl returned is a restricted object of type
System.Windows.Forms.PropertyGridInternal.PropertyGridView

I'm currently poking around in that to see what I can find, but it's tricky,
and most of it is protected or internal code, and since it is restricted it
could change in the future, so hopefully someone has an idea or some
insight...

Thanks.

James CC
 
Ad

Advertisements


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

Similar Threads

Property Grid 0
Property Grid 1
property grid 1
Property Grid 0
multicolumn property-grid 0
Problem with property grid 0
Property grid with listview 0
property grid issues 1

Top