为什么不通过循环构建制定子段的表?
手动构建一个表
private DataTable table_create()
{
DataTable table = new DataTable();
table.Columns.Add("c1");
table.Columns.Add("c2");
Retrun table;
}
循环构建表
private DataTable table_create(params string [] 子段数据)
{
DataTable table = new DataTable();
for (int i=0;i<字段数据.length;i++)
{
table.Columns.Add(字段数据[i]);
}
return table;
}

浙公网安备 33010602011771号