how do I get the propertygrid to display a dynamic class (Expando, dictionary<string, object> where key=propertyname etc)
I have a class where there are a set off attributes stored in Xml. I want to use the PropertyGrid for editing these values.
What would you suggest. (I don't know the attributes names / type before hand, these need to created based on the xml)
Example XML
<Attributes>
<Name>Bob</Name>
<Age DataType='int'>67</Age>
<Gender>Male</Gender>
<HairStyle>Funky</HairStyle>
<DanceStyle>Disco</DanceStyle>
<Music>Average White Band</Music>
</Attributes>
Any help would be appreciated.
Hello Moose,
After research, we have come to the conclusion that it is difficult to solve this question based only on the provided information. If you could provide me with a sample project, it would be very helpful. I am looking forward to your response.
Thanks,
Andrew
Hi,
I have the same problem.
I need use property grid control to edit an XML file or dictionary where is name and value.
How I can do it.
I need it for configuration some external plugins, where autor give config xml file
Thanks for help