2
Answers

Trying to Loop Datagridview in C#

Qing Ryder

Qing Ryder

7y
1.3k
1
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)