use
CellValueChanged
and
EditingControlShowing
event, customize it depends on your need.
private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
var cell = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex];
cell.Style = new DataGridViewCellStyle() { BackColor = Color.White };
string fontName = "Microsoft Sans Serif";
cell.Style.Font = new Font(fontName, 8.25f, FontStyle.Regular, GraphicsUnit.Pixel);
}
private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
e.CellStyle.BackColor = Color.Yellow;
e.CellStyle.Font = new Font(e.CellStyle.Font, FontStyle.Bold);
}