Click here to Skip to main content
15,911,762 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i want to bind an xml to gridview
Bind name of an element to the gridview header and values to the gridview items
XML
<root>
  <row>
    <var name="&quot;ConcessionaryName&quot;" value="&quot;L&amp;T&quot;" />
    <var name="&quot;CountOfRecords&quot;" value="1" />
    <var name="&quot;Amount&quot;" value="&quot;Rs.25.00&quot;" />
    <var name="&quot;FileName&quot;" value="&quot;ConcessionaireSettlement_24012013&quot;" />
    <var name="&quot;Status&quot;" value="&quot;Generated&quot;" />
    <var name="&quot;Date&quot;" value="12/12/12" />
  </row>
  <row>
    <var name="&quot;ConcessionaryName&quot;" value="&quot;Soma&quot;" />
    <var name="&quot;CountOfRecords&quot;" value="2" />
    <var name="&quot;Amount&quot;" value="&quot;Rs.3176.00&quot;" />
    <var name="&quot;FileName&quot;" value="&quot;ConcessionaireSettlement_24012013&quot;" />
    <var name="&quot;Status&quot;" value="&quot;Generated&quot;" />
    <var name="&quot;Date&quot;" value="13/12/12" />
  </row>
Posted

1 solution

 
Share this answer
 

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