After setting datasource, you may use-
foreach (DataGridViewRow row in yourDataGridView.Rows)
{
if (row.Cells[LastColumnIndex].Value == YourValue)
{
row.Cells[LastColumnIndex].Style.BackColor = Color.Red;
}
}
Hope, you have got the idea.