PropertyGrid - ReadOnly

D

Dave Wurtz

All,

Does anyone know how I can make the PropertyGrid control readonly? I want
to display the PUBLIC properties of an object, but I don't want the user to
be able to change them (they do need to be read/write internally, however).
Along with this, if the property is a collection, the collection window
should not allow the user to change values, including pressing the Add or
Remove buttons.

Anyway to do this?

Thanks in advance!

Dave Wurtz
 
A

AlexS

If your property is Get only, then it will be automatically read-only in the
PropertyGrid.

HTH
Alex
 
D

Dave Wurtz

Alex,

Thanks for responding. My properties are Get/Set, which they need to be. I
was hoping to use the PropertyGrid control to only DISPLAY the information
about my object. I don't want the user to be able to change the values in
this particular case.

Any other ideas?

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top