Hi, I have this function to see if all of a certain columns DataGridViewCheckBoxCell values are True. It however fails because it seems to think the current value is false. I'm running this code in the _CellContentClick event, is there somewhere else I could run this, after it's assigned the value to the cell?
Private Function AllTasksAreCompleted() As Boolean
Dim result As Boolean = True
For Each dgvRow As DataGridViewRow In Me.gridTasks.Rows
Dim tempCBcell As DataGridViewCheckBoxCell = GetCheckBoxCell(dgvRow, "colCompleted")
If Not tempCBcell.Value.ToString = "True" Then
result = False
Return result
End If
Next
Return result
Thanks a lot Cody