By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,543 Members | 2,085 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,543 IT Pros & Developers. It's quick & easy.

ExpandableObjectConverter on a struct

P: n/a
Ok here is the problem. I have a struct property on an object that I
want to edit with the property grid. One of the properties of the
properties of the struct is supposed to be read only to the user.

The inital problem is that when you use the ExpandableObjectConverter
as the type converter the values reset themselfs back to their orginal
values. Most likely because the Propertygrid has a copy of the value
and not the value itself.

So I found by overloading the
CreateInstance
GetCreateInstanceSupported
Methods of the typeconverter I could get the value in.
However now all my Properties are Writable (even the ones without a
"set" implemented)

What is the right way to do this?

Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.