on-internet
← Community

Update dataGridView when cell value changed

Stack Overflow ·

I'm having some problem with refresing cell value in dataGridView. My program in c# set values of some rows on button click, but I allow user to change some value in DataGridView. EG. Column3 = Column2+Column1. Which works correctly when i click button but after it when I change some cell value in Column2 I also want Column3 to change value. I'v tried private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e) { dataGridView11.Update(); dataGridView1.Refresh(); } And private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e) { button1_Cl

Comments

Sign in or sign up to comment and upvote.

No comments yet.