Issue with propertygrid.

A

asjad

I need to make my propertygrid readonly in some cases which obviously i
am not able to do.
So what i do is i make my propertygrid.enable = false and then tried to
make its scrollbar.enable = true through reflection but it does not
happen as their is no set in enable property. What i really need to
know is the name of fiels that this enable property accesses so that i
can change its value through reflection. OR any other way to make my
propertygrid readonly without making wrapper classes in which there is
no set, kind of the things.

Thanx in advance.
 
R

r.lauber

Mean you this?:

using System.ComponentModel;

private int m_intPrp = 0;

[ Description("Property"), Category("Standard")]
public int Property
{
get { return m_intPrp; }
set { m_intPrp= value; }
}

Or leaf the "set" methode!

Greetings Raph
 
A

asjad

I said
"OR any other way to make my
propertygrid readonly without making wrapper classes in which there is
no set, kind of the things. "

which means that some other solution in which i dont have to remove set
clause from my property as in some cases i have to set values in that
property.
 
A

asjad

How that going to work. if u can plz mail me any code snippet that is
implementing this property.
 

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

Top