Click here to Skip to main content
15,883,705 members
Articles / Desktop Programming / Windows Forms

Add Custom Properties to a PropertyGrid

Rate me:
Please Sign up or sign in to vote.
4.94/5 (219 votes)
22 Aug 2006Apache6 min read 1.6M   27.8K   443  
Extend a PropertyGrid with an Item collection; easy customization of properties with custom editor, custom converter and databinding.
<?xml version="1.0" encoding="utf-8" ?>
<bookstore>
	<book genre="autobiography" publicationdate="1981" ISBN="1-861003-11-0">
		<title>The Autobiography of Benjamin Franklin</title>
		<author>
			<first-name>Benjamin</first-name>
			<last-name>Franklin</last-name>
		</author>
		<price>5.90</price>
	</book>
	<book genre="novel" publicationdate="1967" ISBN="0-201-63361-2">
		<title>The Confidence Man</title>
		<author>
			<first-name>Herman</first-name>
			<last-name>Melville</last-name>
		</author>
		<price>11.90</price>
	</book>
	<book genre="philosophy" publicationdate="1991" ISBN="1-861001-57-6">
		<title>The Gorgias</title>
		<author>
			<first-name>Sidas</first-name>
			<last-name>Plato</last-name>
		</author>
		<price>9.90</price>
	</book>
</bookstore>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Software Developer (Senior)
Italy Italy
I am 40 years old and I've been working with C++, Visual Basic .NET, C# and ASP.NET. I have a large experience in Industrial Automation solutions, but I've worked also as Web developer and DBA. I like to share knowledge and projects with other people.

Comments and Discussions