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++)
{
dt.Rows[i][j] = array[i, j];
}
}
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++)
{
dt.Rows[i][j] = array[i, j];
}
}