DataTable datatable = new DataTable();
int row = datatable.Rows.Count;
int col = datatable.Columns.Count;
int[][] ary = new int[row][];
for (int i = 0; i < row; i++)
{
ary[i] = new int[col];
for (int j = 0; j < col; j++)
{
ary[i][j] = System.Convert.ToInt32(datatable.Rows[i][j]);
}
}
查询出来 放到数组就可以了啊。。