views:

105

answers:

1

Hi Guys,

I'm new to C#, long time C++ programmer, im just wondering once initalising a propertygrid using .selectedObjects. Is there a way to get contents of the current values in the propertygrid.

Ben

A: 

PropertyGrid doesn't expose its internals to the consumer.

However, .Net lets you perform "Refelction" to examine the structure (and execute parts of) code, including class properties.

Here is an article that covers the basics of reflection. You can actually see more of the internals with reflection than what the property grid displays.

Jason D