i have datagridview with values 0; 11,4; 2,3….. ;
How can i add values for example from two cells and send it to third cell?
dataGridView1[3, 0].Value = Convert.ToInt16(dataGridView1[1, 0].Value) + Convert.ToInt16( dataGridView1[2,0].Value);
but this doesn’t work
so for example in next cell i’ll have 11,4+2,3=13,7.
Problem is in adding float values from datagridview cells.
Why you convert to INT, when you have float? Try use this