DataRow[]转换DataTable

 DataRow[] zjpw = dt.Select("Userzw='排污'");

 DataTable   dtlist = ToDataTable(zjpw); 


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;
    }