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

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -