This project is read-only.

dynamic properties

Mar 20, 2010 at 9:46 AM

Is it possible to not show certain properties of a class instance being displayed in the PG? Also to make some properties read only? I need both of these functions to be dynamically set through code since my app has two modes -- an edit and operation mode. In edit mode I need to show all properties and allow edit while in operation mode I need to hide some properties and make others read only.

Coordinator
Mar 20, 2010 at 10:55 AM

i think this is in the winforms grid also not possible, or?

maybe you can change this attributes of your properties via reflection, and then call refresh on the wpg?

Dec 24, 2010 at 9:01 AM

I've have an implementation of ICustomTypeDescriptor on my class that gives me flexibility to choose what properties are visible and what are read only. So it is working for me. Now I'm just trying to get the right behavior when a property is changed and an exception is returned, but I'll figure it out.

May 19, 2011 at 11:32 AM

Hi Poppy,

If possible can you please share some samples on what you have done?

Regards

Bharat

May 19, 2011 at 11:32 AM

Hi Poppy,

If possible can you please share some samples on what you have done?

Regards

Bharat