I have a datagridview in form1.When a button is clicked,form2 arises with form1 in open.
Im clearing all the rows of dgv from form2 and adding a new empty row into it.
While im executing sometimes it throws an exception in dgv.rows.clear().
Operation did not succeed because the program cannot commit or quit a cell value change.
When i use breakpoint to check, that exception is not thrown.
That exception is thrown sometimes only not all the times.
How can i find where the problem is???