DataGridViewCheckBoxColumn on-click Event
-
I have a DataGridView with an unbound DataGridViewCheckBoxColumn in it. I'm able to manipulate everything as planned with one exception. I cannot seem to detect the appropriate value change when the user clicks the check box. The only event that comes close is CellEndEdit but the problem with it is that it only fires upon exit of the row...but it is the right value! My test is:
if (e.ColumnIndex == 0) { MessageBox(grdVwReadyOrders[0, e.RowIndex].FormattedValue.ToString() + " " + e.RowIndex.ToString() + " " + grdVwReadyOrders["OrderId", e.RowIndex].FormattedValue.ToString()); }
I know I'm on the right row because I get the correct OrderId but regardless of which event I try, either 1) it doesn't fire upon checking or 2) it seems to only detect the value as it was when the user selected the row. What I need to do is detect, at the time the user checks the box, the value after it is checked. If it is checked, I need to do processing on other rows in the view. Doing it only as they leave the row is not user friendly. Thanks.