DataTable dta101 = new DataTable();
DataRow[] drz = dt.Select("MOVE_TYPE='101'");//生成DataRow
if (drz.Length > 0)
dta101 = ToDataTable(drz);
public DataTable ToDataTable(DataRow[] rows)
{
if (rows == null || rows.Length == 0) return null;
DataTable tmp = rows[0].Table.Clone(); // 复制DataRow的表结构
foreach (DataRow row in rows)
tmp.Rows.Add(row.ItemArray); // 将DataRow添加到DataTable中
return tmp;
}