-
Is there any way to change propertygrid griditem behavior in runtime? What I need is I have one property say “Education”, if user selects “Masters” then the next griditem will show education related to master in dropdown control. If user selects “Others” in Education then next control will be textbox type to take user’s input. I know how to show dropdown control, only I need how I can toggle these two control based on user selection.
-
One more question, is there any way to set griditem property “Browsable” to false/true in runtime?
Is this possible?
Since your after sample code, something like the following should get you started:
Now when you bind an instance of
MyClassto the PropertyGrid, your implementation ofGetPropertieswill be called which gives you the opportunity to determine what properties you want to show by populating the property collection accordingly.