I have the following XML data. I need to present them on ASP.NET web page in a hierarchical tabular format.
XML:
<Developers>
<Region name="UK">
<Region name="England">
<Region name="London">
<Data Date="01-01-2019">
<Value name="DotNet">100</Value>
</Data>
<Data Date="01-01-2020">
<Value name="DotNet">200</Value>
<Value name="Java">300</Value>
</Data>
</Region>
<Region name="Other">
<Data Date="01-01-2019">
<Value name="DotNet">400</Value>
</Data>
<Data Date="01-06-2019">
<Value name="DotNet">500</Value>
</Data>
</Region>
</Region>
<Region name="Scotland">
<Data Date="01-01-2019">
<Value name="DotNet">600</Value>
</Data>
</Region>
</Region>
<Region name="France">
<Data Date="01-06-2020">
<Value name="DotNet">700</Value>
</Data>
</Region>
<Region name="Germany">
<Data Date="01-06-2019">
<Value name="Java">800</Value>
</Data>
</Region>
</Developers>
Expected Output:
where (-) is tree view's expand/collapse control.
Is it possible to achieve this using ASP.NET Data Grid? Any code example would be really useful.
