Solved

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

Posted on 2004-09-28
1
861 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Loop not working 29 53
Connection String 16 54
Hey!!!! 1 20
HTML - Color not displaying correctly in EMAIL. 6 32
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now