Click here to Skip to main content
15,893,588 members
Articles / Programming Languages / C#

Automatic Expandable Properties in a PropertyGrid

Rate me:
Please Sign up or sign in to vote.
2.00/5 (3 votes)
4 Jan 20064 min read 71.7K   2K   26  
The article describes a family of classes that will automatically enable each of your custom-type's public properties to be expandable in a PropertyGrid without the need to write an explicit TypeConverter. You will also be able to edit those properties that support the 'set' accessor.

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExpandableObject", "ExpandableObject.csproj", "{53F766B4-B282-4F00-8725-E1CD28D46406}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{53F766B4-B282-4F00-8725-E1CD28D46406}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{53F766B4-B282-4F00-8725-E1CD28D46406}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{53F766B4-B282-4F00-8725-E1CD28D46406}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{53F766B4-B282-4F00-8725-E1CD28D46406}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United Kingdom United Kingdom
The whole world's a circus... don't you be the clown

Comments and Discussions