Private Sub Datagridview1_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles Datagridview1.GotFocus
'Datagridview1.DefaultCellStyle.SelectionBackColor = Color.DarkCyan
Datagridview1.DefaultCellStyle.SelectionBackColor = Color.DeepSkyBlue
End Sub
Private Sub Datagridview1_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles Datagridview1.LostFocus
Datagridview1.DefaultCellStyle.SelectionBackColor = Color.Gray
End Sub
ไม่มีความคิดเห็น:
แสดงความคิดเห็น