Solved

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

Posted on 2004-09-28
1
840 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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 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

6 Experts available now in Live!

Get 1:1 Help Now