data.pa_pc_data[idx].Name = dr["Name"].ToString(); } 3.foreach 通常這種用法,大多用在需要取得欄位名稱的時候 foreach (DataRow dr in dt.Rows)
確定! 回上一頁