//先复制结构
DataTable temp = dt.Clone()
//添加行
for(int i=0;i<dt.Rows.Count;i++)
{
temp.rows.Add(dt.rows[i].ItemArray)
}
Powered by: 博客园 Copyright © 2024 一佳一 Powered by .NET 9.0 on Kubernetes