i am trying to put data in a 2d array but getting error it add value to 0,0 position then 1,0 position and so on please make it correct
int count = output.Tables[0].Rows.Count;
string[,] terms = new string[count,2];
for (int runs = 0; runs < count; runs++)
{
terms[0,runs] =output.Tables[0].Rows[runs][0].ToString();
terms[0,runs] =output.Tables[0].Rows[runs][2].ToString();
}
Hopes for your help..
1 Answer