Itz pretty simple. Sample code is:
private void myDataGridView_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
int colIndex = e.ColumnIndex;
int rowIndex = e.RowIndex;
if (rowIndex >= 0 && colIndex >= 0)
{
DataGridViewRow theRow = dataGridView1.Rows[rowIndex];
if (theRow.Cells[colIndex].Value.ToString() == "Commerce")
theRow.DefaultCellStyle.BackColor = Color.Red;
elseif (theRow.Cells[colIndex].Value.ToString() == "Medical")
theRow.DefaultCellStyle.BackColor = Color.Yellow;
if (theRow.Cells[colIndex].Value.ToString() == "Arts")
theRow.DefaultCellStyle.BackColor = Color.Green;
}
}