我有几个以下格式的 xml 文件。
<!--?xml version="1.0" standalone="yes"?-->
<details>
<Classes>
<class>5</class>
<section>A</class>
</Classes>
<student>
<firstname>Avijeet</firstname>
<lastname>Roy</lastname>
<roll>01</roll>
</student>
<student>
<firstname>Saurav</firstname>
<lastname>Das</lastname>
<roll>02</roll>
</student>
<Classes>
<class>10</class>
<section>A</class>
</Classes>
<student>
<firstname>Saumitra</firstname>
<lastname>Bain</lastname>
<roll>10</roll>
</student>
<student>
<firstname>Tarun</firstname>
<lastname>Sing</lastname>
<roll>11</roll>
</student>
</details>
现在我想要一个像我的 asp.net 页面一样的数据网格
Class Section fname lname roll
5 A Avijeet Roy 01
5 A Saurav Das 02
10 A Saumitra Bain 10
10 A Tarun Sing 11
我搜索了很多,但找不到类似的东西。我是 C# 新手