DataTable轉換爲二維數組

DataTable dt = new DataTable(); int col = dt.Columns.Count; string[,] array = new string[dt.Rows.Count,col]; for (int i = 0; i < dt.Rows.Count; i++) {     for (int j = 0; j < dt.Columns.Count; j++)   
相關文章
相關標籤/搜索