Change of property attributes during Run-Time (e.g. Brwosable)
-
Dear Community, can anybody give me a hint how I can change the attribute for a property during Run.Time?. My current problem is that I use a PropertyGrid to show my defined properties. Depending on the selcetion of a certain Property (drop down menu) I want some other properties to be shown [
browsable(true)
] or not to be shown [browsable(false)
].:doh: ThanX... -
Dear Community, can anybody give me a hint how I can change the attribute for a property during Run.Time?. My current problem is that I use a PropertyGrid to show my defined properties. Depending on the selcetion of a certain Property (drop down menu) I want some other properties to be shown [
browsable(true)
] or not to be shown [browsable(false)
].:doh: ThanX...Simple way to do is, create two classes one base class another derived class. In base class property set browsable attribute to true and in derived class property set browsable attribute to false... Interchange object from baseclass to derived class. Thats it...
M Aamir Maniar aamirOnline.com
-
Simple way to do is, create two classes one base class another derived class. In base class property set browsable attribute to true and in derived class property set browsable attribute to false... Interchange object from baseclass to derived class. Thats it...
M Aamir Maniar aamirOnline.com