I have a DataGridView with all todays GB races.
There is a column that is blank that changes to "inplay" when the race is off.
What i would like to do is remove the runners from that race when it goes into play.
The races are in date order, so i thought if i could remove the races one at a time it would stop at the next race.
I have made a subroutine with a time to check for inplay and here is the sub.
Private Sub RemoveInplay()
If DataGridView1.Rows(0).Cells(3) Is "inplay" Then
DataGridView1.Rows.RemoveAt(0)
End If
End Sub
I get the outOfRange Exception
Anyone any ideas.
There is a column that is blank that changes to "inplay" when the race is off.
What i would like to do is remove the runners from that race when it goes into play.
The races are in date order, so i thought if i could remove the races one at a time it would stop at the next race.
I have made a subroutine with a time to check for inplay and here is the sub.
Private Sub RemoveInplay()
If DataGridView1.Rows(0).Cells(3) Is "inplay" Then
DataGridView1.Rows.RemoveAt(0)
End If
End Sub
I get the outOfRange Exception
Anyone any ideas.


Comment