Torna al Thread
Private Sub DataGridView1_CellPainting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellPaintingEventArgs) Handles DataGridView1.CellPainting
If Me.DataGridView1.Columns(4).Index = e.ColumnIndex AndAlso e.RowIndex >= 0 Then
If Me.DataGridView1.Rows(e.RowIndex).Cells.Item(4).Value Is "Arrivo" Then
e.CellStyle.BackColor = Color.LightGreen
ElseIf Me.DataGridView1.Rows(e.RowIndex).Cells.Item(4).Value Is "Partenza" Then
e.CellStyle.BackColor = Color.Red
....DISABILITARE IL BUTTON
End If
End If
End Sub