Dim r As Integer For r = 0 To DataGrid1.Rows.Count - 1 If DataGrid1.Rows(r).Cells(1).Value = "Inactive" Then DataGrid1.Rows(r).Cells(1).Style .ForeColor = Color.Red Else DataGrid1.Rows(r).Cells(1).Style .ForeColor = Color.Black End If Next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)