Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Setting visibility of properties in a propertygrid at runtime
 

Setting visibility of properties in a propertygrid at runtime

Hi,

How to set visibility of properties in a property grid at runtime..?

My requirement is to show and hide some properties based on the selected item of dropdownlist.

Jogesh Grover  Monday, July 16, 2007 11:48 AM

Hi,

Have a look at this...

http://groups.google.co.uk/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/59aeba4afbbce359/758ea50a56d95624?lnk=gst&q=property&rnum=4&hl=en#758ea50a56d95624

Pay attention to pigeonrandle's posts since they have the code you require in them.

HTH,

James.

jrtttt  Wednesday, July 18, 2007 2:26 AM

Hi Jogesh,

Here is a sample for you.

http://www.codeproject.com/csharp/FilteredPropertyGrid.asp

Hope this helps.

Regards

Rong-Chun Zhang  Wednesday, July 18, 2007 1:12 PM

HI James,Rong

Thanks for ur reply...

But i have got a better solution for my problem

Refer http://www.dotnet247.com/247reference/msgs/6/30102.aspx

It's a simple method which will take some arguments and set visisbiltiy of your property at runtime...

Jogesh Grover  Thursday, July 19, 2007 4:23 AM

Hi,

Have a look at this...

http://groups.google.co.uk/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/59aeba4afbbce359/758ea50a56d95624?lnk=gst&q=property&rnum=4&hl=en#758ea50a56d95624

Pay attention to pigeonrandle's posts since they have the code you require in them.

HTH,

James.

jrtttt  Wednesday, July 18, 2007 2:26 AM

Hi Jogesh,

Here is a sample for you.

http://www.codeproject.com/csharp/FilteredPropertyGrid.asp

Hope this helps.

Regards

Rong-Chun Zhang  Wednesday, July 18, 2007 1:12 PM

HI James,Rong

Thanks for ur reply...

But i have got a better solution for my problem

Refer http://www.dotnet247.com/247reference/msgs/6/30102.aspx

It's a simple method which will take some arguments and set visisbiltiy of your property at runtime...

Jogesh Grover  Thursday, July 19, 2007 4:23 AM

You can use google to search for other answers

Custom Search

More Threads

• ShowUI method crashes when coupled with Form.Close
• Using Custom ProfessionalColor Table with toolstriprenderer.
• Not being able to drag and drop
• display datagriview in panel control
• How to create an object property for a custom UserControl?
• treeview control in a context menu? possible?
• Buttons in form's titlebar
• How do I launch the collection editor associated to a property?
• IDE freezes after build (succeeded or failed) very likely related to the Toolbox
• How to Show form in Quick lunch rather than Task bar