我在作一个xml的解析
- <question>
<id>9</id>
<type>table</type>
<text>试验表格</text>
- <rows>
- <row>
<id>1</id>
<text>rowa</text>
</row>
+ <row>
<id>2</id>
<text>rowb</text>
</row>
- <row>
<id>3</id>
<text>rowc</text>
- <row>
<id>4</id>
<text>childrowa</text>
</row>
- <row>
<id>5</id>
<text>childrowb</text>
</row>
</row>
</rows>
- <cols>
- <col>
<id>6</id>
<text>cola</text>
</col>
- <col>
<id>7</id>
<text>colb</text>
</col>
- <col>
<id>8</id>
<text>colc</text>
- <col>
<id>9</id>
<text>childcola</text>
</col>
- <col>
<id>10</id>
<text>childcolb</text>
</col>
</col>
</cols>
</question>怎么根据上面的节点后台动态生成一个 类似table表,显示里面的内容,在WinForm中有什么控件可以生成table阿,并且要控制生成table的大小,位置,谢谢:)
- <question>
<id>9</id>
<type>table</type>
<text>试验表格</text>
- <rows>
- <row>
<id>1</id>
<text>rowa</text>
</row>
+ <row>
<id>2</id>
<text>rowb</text>
</row>
- <row>
<id>3</id>
<text>rowc</text>
- <row>
<id>4</id>
<text>childrowa</text>
</row>
- <row>
<id>5</id>
<text>childrowb</text>
</row>
</row>
</rows>
- <cols>
- <col>
<id>6</id>
<text>cola</text>
</col>
- <col>
<id>7</id>
<text>colb</text>
</col>
- <col>
<id>8</id>
<text>colc</text>
- <col>
<id>9</id>
<text>childcola</text>
</col>
- <col>
<id>10</id>
<text>childcolb</text>
</col>
</col>
</cols>
</question>怎么根据上面的节点后台动态生成一个 类似table表,显示里面的内容,在WinForm中有什么控件可以生成table阿,并且要控制生成table的大小,位置,谢谢:)
解决方案 »
- C#如何实现一直ping IP地址
- C# 怎么让winform程序中的输入文本框保留上次的输入
- con is System.Windows.Forms.TabControl 怎么转换成vb.net ,谢谢
- 一个已经郁闷了好长时间的问题,详细说明请您进入阅读,谢谢!
- 有这样做过类似的程序吗?
- 为什么程序运行起来在task manager中的application中有两个应用程序,而且都是not responding.......
- 如何在DataGrid中设置一些?
- 关于installshield打包的简单问题
- 想购买C#写的数据库程序,具体要求如下:
- 重装framework之后服务器时间显示错误
- 问des和sqlserver的操作
- 怎么在Excel中画对角线?用代码实现。
用datagrid把,动态生成可用this(form).Controls.Add(datagrid1);