Hello.
I have the following code that used to work:
private void cellFormatting(object sender, CellFormattingEventArgs e)
{
if (chkHighlight.Checked && e.RowIndex < grid.RowCount - 1 &&
e.Column.FieldName != nameof(Audited.ValidFromTime) &&
e.CellElement.Value?.Equals(grid.Rows[e.RowIndex + 1].Cells[e.ColumnIndex].Value) != true)
e.CellElement.Font = new Font(e.CellElement.Font, FontStyle.Bold);
else
e.CellElement.ResetValue(LightVisualElement.FontProperty, ValueResetFlags.Local);
}
For some reason none of the cells comes up bold anymore (I set a breakpoint to make sure the code that sets the Font was being executed).
Any ideas?