c# how to populate string array dynamically with numeric values

  • Thread starter Thread starter Sudip_inn
  • Start date Start date
S

Sudip_inn

Guest
This is my 2 dimensional string array with hard coded values.

string[,] rows = new string[,]{
{"1","2","5","10"},
{"9","6","20","11"},
{"7","4","9","30"},
{"4","13","80","40"},
{"9","12","55","50"},
{"6","19","21","60"},
{"=SUM(A1:A2)","=SUM(B1:B6)","=SUM(C1:C3)","=SUM(D2:D5)"}


now i want to populate the above array dynamically instead of hard coding the value.

this is sample formula =SUM(A1:A2) and hard coded at the last row of the array but which i want to compose formula dynamically and assign randomly to any array element.

please guide me with sample code.

Continue reading...
 
Back
Top