我是豬foreach (DataRow drt in ds.Tables["root"].Rows[0].GetChildRows(dr)){ DataRow dr = dtt.NewRow(); dtt.Rows.Add(dr); dr = drt; dtt.AcceptChanges();}