I have a datagridview on a windows form that the user will populate by clicking a button the form. The first column in the datagridview is a checkbox column. When the user checks the checkbox and the checkbox I need to run a function that totals up the value of one column in the datagridview.
I have everything figured our - populating the guide, formatting the datagridview so that the first column us a checkbox, performing the calculations, etc. The probably I am having is determining when the user checks or unchecks the checkbox so that I can execute the code the totals the table values.
I need to know what event to use or how to tell when the checkbox is either checked or unchecked so I can fire my code. I tried the cellvaluechanged event but when the form is loading it fires the code and throws an error looking for a column in the grid that the code uses to total everything up.
Any help would be appreciated