Hello there!
I just started work on an application that makes extensive use of the .NET PropertyGrid control provided by Microsoft with the 2.0 framework. This app utilizes the SelectedObject field along with custom TypeConverters and ICustomTypeDescriptors to properly display and manipulate the desired objects.
Everything works great with the exception of one desired feature: We want to be able to disable any of the individual properties in the grid with the click of a checkbox. So each property will ideally have a checkbox associated with it either to the left or right of the row. Is it possible to alter the way that the PropertyGrid displays each field's label such that it would display a checkbox (which I could tie events to) and then the field name I've seen lots of examples that display checkboxes in the value column (as a replacement for boolean values) but this isn't the desired behavior. The checkbox I want is independent of the actual field data; clicking it should disable editting of the property.
If altering the PropertyGrid control itself isn't viable, does anyone have any suggestions Using an alternative control would only suffice if it emulated the SelectedObject behavior and worked with TypeConverters and Descriptors. An example of something that comes close is SmartPropertyGrid.NET but its handling of TypeConverters and Desriptors is not robust by any stretch of the imagination. Thanks in advance for any help you can offer.
-Courtney Tompos

Checkboxs, PropertyGrids, Oh My!
Johnh2005
What you ask (checkboxes for enabling/disabling properties) is indeed one of the features of Smart PropertyGrid.Net.
Concerning TypeConverters and TypeDescriptors, SPG.Net fully handles them because I have a lot of customers who use SelectedObject(s) and who rely on their existing code (converters and more). But still, SPG shows all its power when used dynamically (no SelectedObject) and my customers who made the switch (changed the way their app was dealing with the PropertyGrid) don't regret it.
Best regards,
Nicolas Cadilhac
Smart PropertyGrid.Net @ VisualHint
Microsoft PropertyGrid Resource List
Free PropertyGrid for MFC