Subclassing the PropertyGrid

  • Thread starter Thread starter Scott McChesney
  • Start date Start date
S

Scott McChesney

Folks -

I've done some searching on the 'net, and I think I know the answer to my
question, but I wanted to pose it anyway, just in case.

I'm embarking on a new project, and we're investigating the use of the
PropertyGrid. I've used it in a couple of places before, but never in an
application that goes out to my general user base. We really like the
functionality and capabilities it provides, but some of the display choices
are not exactly what we want.

Some initial tests of creating an inherited control (and my above-mentioned
searching) seemed to show that I'm SOL if I want to override the drawing of
the control elements. I really do not want to go through the effort of
re-creating the majority of this control just so we can draw a couple of
things differently.

Any ideas?

TIA

- Scott
 
What do you want to draw differently? The PropertyGrid can be
manipulated to display things differently.
 
I would like to change the way individual grid items are drawn (I don't want
them to turn bold when the property changes from a default, and I'd like to
draw the captions in bold), and I'd like to modify what's shown in the
toolbar (take away a couple of buttons, and change the button style if
possible.) I don't know of any properties or overrides that will get me
there.

- Scott
 
Dear Scott,

I would like to bring to your attention a product that I am
developping, called Smart PropertyGrid. It is a complete replacement
for the well known Microsoft PropertyGrid. However it is not a designer
to be used in VisualStudio ;)

When released, this control will act as the standard one, discovering
properties of an object instance at runtime, but it will also add many
many features. A part of these features can be read at
http://www.visualhint.com since this library already exists for MFC.
Basically what it adds is:

* Complete customization of the grid's look.
* Each property can have a different look and feel.
* Multiline properties.
* Multiple values per property.
* a lot more...

Your request of being able to change individual visual aspects of the
control is of course a basic feature of the library.

If you need more information, don't hesitate to contact me. A new web
site has been created explicitely for the library that is written in C#
at http://www.propertygrid.net .

Best regards

Nicolas Cadilhac
VisualHint
 
Back
Top