sumcolumn =0; for (int i = 0; i < (dataGridView2.Rows.Count - 1); i++) { sumcolumn =sumcolumn + Convert.ToInt16(dataGridView2.Rows[i].Cells["columnname"].Value); } textbox1.text= Convert.tostring(sumcolumn)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)