Solved

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

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows shortcut location resolution on double click open 4 47
asp web application 3 35
Selenium and Xpath 4 28
Nested forach loop to linq 3 24
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

679 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