private void mappedSignalAttributes_CellEndEdit( object sender, DataGridViewCellEventArgs e ) { DataGridViewCell cell = mappedSignalAttributes.Rows[e.RowIndex].Cells[e.ColumnIndex]; cell.Style.ForeColor = IsCellDirty( cell ) ? Color.Blue : Color.Black; }