PropertyGrid
-
Hallo... Are there any possibilities to use PropertyGrid only as "View" ? That means, the propertyGrid cannot be edited. Thanks...
-
How about setting the Enabled property to false?
He who makes a beast out of himself gets rid of the pain of being a man
-
After a bit of Googling, this article seems to mention something that sounds like what you want. Here.[^] Scroll down to "Using Attributes in PropertyGrid". I have never really used a PropertyGrid before so can't really help you much more than that.
He who makes a beast out of himself gets rid of the pain of being a man
-
Hallo... Are there any possibilities to use PropertyGrid only as "View" ? That means, the propertyGrid cannot be edited. Thanks...
You can mark properties as readonly using the ReadOnlyAttribute.
Deja View - the feeling that you've seen this post before.
-
Hallo... Are there any possibilities to use PropertyGrid only as "View" ? That means, the propertyGrid cannot be edited. Thanks...
Hello, if a commercial product is an option for you, only Smart PropertyGrid will give you the flexibility of choosing a disabled mode for the PropertyGrid. By descending order of "disabled" importance: 1. It can be completely disabled (nothing is actionable, not even the scrollbar). 2. It can be completely disabled (nothing is actionable except the +/- signs and it is scrollable). 3. It can be disabled with the properties still selectable and scrollable. 4. It can minimally be disabled with the property values selectable so that you can copy their value. The PropertyGrid doesn't handle a direct way to disable everything. You would have to set a hardcoded Readonly attribute on your properties or to publish dynamically a Readonly attribute for your properties with a TypeConverter or Type Descriptor... not very easy for a simple requirement... Best regards, Nicolas Cadilhac @ VisualHint Smart PropertyGrid.Net Microsoft PropertyGrid Resource List Free PropertyGrid for MFC Smart FieldPackEditor.Net / DateTimePicker