Click here to Skip to main content
15,035,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have program which add all the default values of first four rows and show total in 5th row.
i have requirement that if user change the value of any row from first 4, it should automatically update in 5th row. like in excel sheet if we change the value of any cell all the connected cell updates immediately

What I have tried:

dataGridView1.Rows[4].Cells[1].Value = (int)double.Parse(dataGridView1.Rows[0].Cells[1].EditedFormattedValue.ToString())
Updated 24-Jul-21 8:53am

1 solution


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900