Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 15 列的数据集。我想生成一个只有 4 列该数据集的 excel 表。我们如何在数据表中选择列的子集?谢谢,罗希特
您可以DefaultView.ToTable为此使用:
DefaultView.ToTable
var table = table.DefaultView.ToTable(false, "Column1", "Column2", "Column3");
这是文档:DefaultView.ToTable 方法