2
A
回答
3
請看看下面的文章mr.phoenix給出
Converting an Excel Spreadsheet to a DataSet, DataTable and Multi-Dimensional Array
1
可以在代碼中創建一個數據集/數據表: http://msdn.microsoft.com/en-us/library/system.data.datatable.aspx
從那裏,你將通過您的數組循環和填充行及其列與陣列信息。
1
選項應該工作。如果你堅持處理數組......這是一些僞代碼。
var sample = {{0, 1}, {2, 3}, {4, 5}, {6, 7}, {8, 9}};
var table = new DataTable("SampleTable");
// iteration logic/loops for the array
{
var newRow = table.NewRow();
newRow["Col1"] = sample[i,j0]; // like sample [0,0]
newRow["Col2"] = sample[i,j1]; // like sample [0,1]
table.Add(newRow);
}
相關問題
- 1. 將二維數組轉換爲二維數組列表?
- 2. 在c中將單維數組轉換爲二維數組#
- 3. 轉換JSON數據,以二維數組
- 4. 將二維數組轉換爲二維數組的多個塊
- 5. 如何將數據庫結果轉換爲二維數組
- 6. 將一個數據幀轉換爲矩陣或二維數組
- 7. 將xy數據集轉換爲數組
- 8. 將PHP數組轉換爲C#數組/數據集
- 9. 將數據集轉換爲二進制
- 10. 轉換爲二維數組
- 11. 轉換數據集的數據表C#
- 12. 如何一維數組轉換爲二維數組在C#
- 13. 如何將2維數組列表轉換爲數據表?
- 14. 將二維數組轉換爲指針
- 15. 將一個數組轉換爲二維
- 16. 將一維數組索引轉換爲二維數組索引
- 17. 將二維數組轉換爲三維數組
- 18. 在python中將二維數組轉換爲三維數組
- 19. 在處理中將二維數組轉換爲一維數組
- 20. 將二維numpy數組轉換爲三維數組
- 21. 將兩個一維數組轉換爲單個二維數組
- 22. 將二維數組轉換爲一維數組(有條件)
- 23. 將單個二維數組轉換爲多維數組
- 24. 將一維數組轉換爲numpy的二維數組
- 25. 將二維數組轉換爲Java中的一維數組
- 26. 將一維數組轉換爲二維數組
- 27. 將一維數組的索引轉換爲二維數組
- 28. 轉換二維數組多維數組
- 29. 轉換維數組二維數組PHP
- 30. 在C#中將二維數組轉換爲單維?