How To Put Data In 2D Array from Dataset Using Loop C#?
<p>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 </p>

<pre><code>int count = output.Tables[0].Rows.Count;
string[,] terms = new string[count,2]; 
for (int runs = 0; runs &lt; count; runs++)
{
    terms[0,runs] =output.Tables[0].Rows[runs][0].ToString();
    terms[0,runs] =output.Tables[0].Rows[runs][2].ToString();
}
</code></pre>

<p>Hopes for your help..</p>
