How can I change column fore color in DataGridview as per condition?
- by Ashish
hi,
i have one table like employee and one of its row is 'status'
if status value is 'approve' then i want to show that row in green color
and else i want to show it in red color.
i have tried following but not working
if (e.Row.RowType == DataControlRowType.Header)
{
string status = DataBinder.Eval(e.Row.DataItem,…