Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to load XML document in property grid and display the XML tags as properties in property grid
ex)
<property>
   <partname name="PartName" value="0090-sw" />
   <noofparts name="NoOfParts" value="5" />
</property>


in property grid I should get name ="PartName" as property and value as "0090-sw". similarly "NoOfParts" as property and 5 as value


[Edit]Code is wrapped in "pre" tag[/Edit]
Posted
Updated 3-Jan-11 22:32pm
v4

Write an xmlserializer/deserializer for the class you want to bind to your propertygrid.
Read the next article : http://support.microsoft.com/kb/815813[^]

Cheers
 
Share this answer
 
There are good controls in CodeProject that could be useful for you:
- XmlGridControl Editing XML Data in the PropertyGrid[^]
- XmlGrid[^]

:)
 
Share this answer
 
Comments
Dalek Dave 4-Jan-11 5:07am    
Good Link

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900