If e.ColumnIndex = 11 Then
If Convert.ToString(e.Value) = "ลาออก" Then
e.CellStyle.BackColor = Color.Yellow
e.CellStyle.ForeColor = Color.Red
End If
End If
Dim i As Integer
Dim str1 As String
For i = 0 To dgvEmp.Rows.Count - 1
str1 = dgvEmp.Rows(i).Cells(11).Value
If str1 = "ลาออก" Then
'f Convert.ToDouble(str1) <= 50 Then
Me.dgvEmp.Rows(i).DefaultCellStyle.BackColor = Color.Yellow
Me.dgvEmp.Rows(i).DefaultCellStyle.ForeColor = Color.Red
End If
Next