Posted 16 March 2021, 10:26 pm EST
Hello,
I use a WPF Flexgrid and try to set BackColor of cells.
Therefore I use my own CellFactory-Class with overwritten ApplyCellStyles-Method:
public class MyCellFactory : CellFactory
{
public override void ApplyCellStyles(C1FlexGrid grid, CellType cellType, CellRange range, Border bdr)
{
bdr.Background = new SolidColorBrush(Color.Coral);
}
}
That works fine for the first row, but the problem is, that all ColumnHeaders are also painted with this BackColor.
Same Problem with RowHeaders.
Can you tell me, what i’m doing wrong?
Best regards,
Dirk