Qing Ryder

Qing Ryder

  • NA
  • 202
  • 16.6k

Trying to Loop Datagridview in C#

Oct 10 2017 6:03 AM
please someone should loop this code for me in c#.
 
double chick2 = (Convert.ToDouble(f2.dataGridView1[1, 0].Value)) * (Convert.ToDouble(f2.dataGridView1[3, 0].Value));
dataGridView1[4, 0].Value = chick2;
dataGridView1[5, 0].Value = chick2;
dataGridView1[6, 0].Value = chick2;
dataGridView1[7, 0].Value = chick2;
dataGridView1[8, 0].Value = chick2;
 
they all have the same value and I don't know how to loop it.
 
kinda new

Answers (2)