H-SC
asked on
Conditional Formating In DataGridView
I have a datagridview that I would like the entire row to be a background of green if the column called Status = "Complete" for that particular row/record. Thanks in advance..
ASKER
jpaulino,
I am using tis form for display only and not allowing edits. I have a timer attached to it to refresh. I tried puting the code on the timer event but it does not like thr "e", any ideas??
I am using tis form for display only and not allowing edits. I have a timer attached to it to refresh. I tried puting the code on the timer event but it does not like thr "e", any ideas??
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
jpaulino,
Works great!! Many thanks
Works great!! Many thanks
If myDataGridView("Status", e.RowIndex).Value = "Complete" Then
myDataGridView.Rows(e.RowI
Else
myDataGridView.Rows(e.RowI
End If
jpaulino