Solved

How to get PropertyGrid to edit an array of my own properties

Posted on 2004-09-28
1
878 Views
Last Modified: 2012-06-27
Hi good people!

The PropertyGrid control is a very nice control if you want to edit the members of an object that are exposed as public properties.

I want to do the same thing, but I want to edit an array of properties, rather than the properties of an object. In other words, I would like to create an array of name, value pairs and edit them with the PropertyGrid.

I suppose I might be able to use the CodeDOM to dynamically create a class that presents the data, then present it in a property sheet, but this seems like using a slege hammer to kill a gnat...

Does anyone have a clue as to how you would use the PropertyGrid to let users edit elements that I dynamically create?

Thanks!

-Kelly
0
Comment
Question by:kellycoinguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 12173418
Would something like this work:

Bending the .NET PropertyGrid to Your Will
http://www.codeproject.com/cs/miscctrl/bending_property.asp

Bob
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Suggested Courses

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question