|
-
February 28th, 2006, 08:03 AM
#1
Setting the browsable attribute dynamically
What I want to do is set the browsable attribute (component model) of a property programmatically depending on some conditions. The reason for this is because I want to display a object in a propertygrid control sometimes with and sometimes without the property. I tried to override the browsable attribute in the propertydescriptor class, but the browsable attribute is not available there. I'll appreciate any help. Thanks in advance.
-
February 28th, 2006, 09:03 AM
#2
Re: Setting the browsable attribute dynamically
Instead you can associate your own ControlDesigner with your class and override the PreFilterProperties method to add or remove properties viewed in the property grid.
Useful? Then click on (Rate This Post) at the top of this post.
-
March 2nd, 2006, 06:21 AM
#3
Re: Setting the browsable attribute dynamically
I need to do it at runtime.
-
March 6th, 2006, 03:50 AM
#4
Re: Setting the browsable attribute dynamically
yes...
doesn't my solution work?
Useful? Then click on (Rate This Post) at the top of this post.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|