PropertyGrid
-
Hi, I'm using a PropertyGrid on my custom property class. I want to dynamicly set a property to ReadOnly or hide it. How do I do this? Gr.
-
[ReadOnly]
public bool Foo {get;set;}[Browsable(false)]
public bool Bar {get;set;}xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)I'n not sure what I'm suppose to do here. When I add [ReadOnly] to my property I get an error. I tried something like [ReadOnly(Foo)] but that not allowed either. Could you give me a bit more described answer. Thanks
modified on Tuesday, July 1, 2008 4:28 AM
-
I'n not sure what I'm suppose to do here. When I add [ReadOnly] to my property I get an error. I tried something like [ReadOnly(Foo)] but that not allowed either. Could you give me a bit more described answer. Thanks
modified on Tuesday, July 1, 2008 4:28 AM
-
Well I think i haven't been very clear. I know this. But I want to change this Dynamicly. By that I mean I wan't to change this at runtime by clicking on a button or something.
Well you should flippen well ask that! And why vote me down when I gave you the correct answer for your original question? The answer is you cant do that. (You can probably but that will require a lot of work, and I have not gone down that route).
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008) -
Well you should flippen well ask that! And why vote me down when I gave you the correct answer for your original question? The answer is you cant do that. (You can probably but that will require a lot of work, and I have not gone down that route).
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)Well sorry for voting you down but your answer wasn't verry complete and I thought the word Dynamicly made it pretty clear I wasn't looking for a static solution. But we might disagree on that one. Although I found a project in wich it is done (link[^]), this was way to complex for me so I'm using a workaround now. Anyway thanks for your reply. and sorry again for the "down voting".
-
Well sorry for voting you down but your answer wasn't verry complete and I thought the word Dynamicly made it pretty clear I wasn't looking for a static solution. But we might disagree on that one. Although I found a project in wich it is done (link[^]), this was way to complex for me so I'm using a workaround now. Anyway thanks for your reply. and sorry again for the "down voting".
KBou wrote:
Although I found a project in wich it is done (link[^]), this was way to complex for me so I'm using a workaround now.
That's what I thought :)
KBou wrote:
I thought the word Dynamicly made it pretty clear I wasn't looking for a static solution.
Dynamic can mean a lot :)
KBou wrote:
Anyway thanks for your reply. and sorry again for the "down voting".
No problem :)
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)