You can try this
if (Datagridview.CurrentRow.Cells["The Name of the Datagridview Heading"].Value.ToString() == "Specefic value in the cell that are under the Datagridview heading")
{
this.Datagridview.DefaultCellStyle.SelectionBackColor = Color.Green;
this.Datagridview.RowHeadersDefaultCellStyle.SelectionBackColor = Color.Green;
}
Example
Datagridview layout
ID CustomerName CustomerSurname
1 Peter Boschoff
if (Datagridview.CurrentRow.Cells["CustomerName"].Value.ToString() == "Peter")
{
this.Datagridview.DefaultCellStyle.SelectionBackColor = Color.Green;
this.Datagridview.RowHeadersDefaultCellStyle.SelectionBackColor = Color.Green;
}