How To Put Data In 2D Array from Dataset Using Loop C#? -



How To Put Data In 2D Array from Dataset Using Loop C#? -

i trying set info in 2d array getting error add together value 0,0 position 1,0 position , on please create right

int count = output.tables[0].rows.count; string[,] terms = new string[count,2]; (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 help..

terms[runs,0] =output.tables[0].rows[runs][0].tostring(); terms[runs,1] =output.tables[0].rows[runs][2].tostring();

c#

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -