Posted 7 June 2018, 3:26 am EST
Hello Tobias,
Using CellFactory, you can easily achieve your requirements, you just need to override ApplyCellStyles method, as follows:```
public override void ApplyCellStyles(C1FlexGrid grid, CellType cellType, CellRange rng, Border bdr)
{
if (cellType== CellType.ColumnHeader)
{
var tb = bdr.Child as TextBlock;
tb.Foreground = Brushes.Yellow;
tb.FontSize = 30;
bdr.Background = Brushes.Red;
bdr.BorderThickness = new Thickness(0, 0, 0, 5);
bdr.BorderBrush = Brushes.Blue;
}
else
{
base.ApplyCellStyles(grid, cellType, rng, bdr);
}
}
And for setting column header height use the following statement
fg.ColumnHeaders.Rows[0].Height = 80;
Thanks & Regards,
Ruchir