473,385 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Subclassing the PropertyGrid

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
Jul 21 '05 #1
3 1450
What do you want to draw differently? The PropertyGrid can be
manipulated to display things differently.

Jul 21 '05 #2
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

"Chris Dunaway" <du******@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
What do you want to draw differently? The PropertyGrid can be
manipulated to display things differently.

Jul 21 '05 #3
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

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Terry | last post by:
I have a very basic program, but for some reason I can't get it to behave properly. What I want is a basic form with a TabControl that fills the entire form. The tab control should have 4 tabs...
3
by: Dave Girvitz | last post by:
I have a PropertyGrid (Windows Forms App) based component that uses TypeConverters to generate ranges of acceptable values for properties. The idea was that I could download the key/value pairs...
1
by: ANDRES BECERRA | last post by:
Herfried K. Wagner was kind enough to point me to the PropertyGrid control http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwindowsformspropertygridclasstopic.asp I have found a few...
7
by: siddhiash | last post by:
Hi Friends I want to add PasswordChar Property which shows ****** for string which I type in PropertyGrid Control. Regards, Siddharth
3
by: Scott McChesney | last post by:
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...
6
by: Steve Teeples | last post by:
Can someone show me an example of how to place a "CheckedListBox" property within a PropertyGrid? -- ----------- Thanks, Steve
5
by: Sharon | last post by:
I'm using the PropertyGrid control, and I want it to show a button. But I set the PropertyGrid.SelectedObject with a object that as a Button property, the PropertyGrid shows the buttons properties,...
4
by: phcmi | last post by:
I have a PropertyGrid question. My task is to replace a legacy dialog box presentation with a modern one. The dialog itself allows the user to set configuration settings in our application, so...
3
by: =?Utf-8?B?U3RldmVU?= | last post by:
Is it possible to hide a row within a PropertyGrid based upon the boolean value of another row within the PropertyGrid? I am using VS2005 with .NET Frameworks 2.0. -- ----------- Thanks,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.