Gary Joynes
Gary Joynes

Reputation: 656

Get list of properties and values from PropertyGrid

I have access to a 3rd party PropertyGrid within my application (C#. ,Net v2). Is there an easy way to iterate over the properties in the grid and their values?

Upvotes: 0

Views: 1090

Answers (1)

Jacob G
Jacob G

Reputation: 3665

If I understand your question correctly, you'll need to use reflection on the SelectedObject property to get all of the properties and values. The grid itself doesn't programmatically expose those.

Upvotes: 1

Related Questions