如何清除数据集中的总表 [英] how to clear total table in dataset
本文介绍了如何清除数据集中的总表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,先生,
如何清除数据集中的总表?
我正在尝试:
Hi sir,
How to clear total table in dataset?
I am trying this:
dim dset as new datset()
.
.
.
dset.clear()
在这种情况下,它仅清除行,但我的目标是从数据集中清除总表.
请给一个解决方法先生
谢谢.
In this case it clears only the rows but my aim is clear total table from dataset.
Please give a solution sir
Thanks.
推荐答案
尝试使用DataTableCollection中的Remove方法:
Try using Remove method from DataTableCollection:
yourDataSet.Tables.Remove(yourDataTable);
这篇关于如何清除数据集中的总表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文