private void graphfilterdatagrid_CellEndEdit(object sender, DataGridViewCellEventArgs e) { DataGridViewCell cell = graphfilterdatagrid.Rows[e.RowIndex].Cells[e.ColumnIndex]; if (e.ColumnIndex == 3) { cell.Value = Utility.FormatDatagridColorGraphCell(cell); } else if (e.ColumnIndex == 1 || e.ColumnIndex == 2) { cell.Value = Utility.FormatDatagridItemIDCell(cell); } RazorEnhanced.Filters.CopyGraphTable(); }