Posted 20 December 2021, 7:11 pm EST
Hello Manish,
Thanks for the quick answer, this is not exactly what im looking for, but you pointed me in the right direction.
I ended up checking in my cell factory, in the PrepareCellStyle, if the cell have an image value, and then set the minheight of that specific row.
public override void PrepareCellStyle(GridCellType cellType, GridCellRange range, C1Style style, C1Thickness internalBorders)
{
base.PrepareCellStyle(cellType, range, style, internalBorders);
if (cellType == GridCellType.Cell || cellType == GridCellType.RowHeader)
{
Cell cell = (Cell)Grid.Cells[range.Row, range.Column];
if (cell.BackColor != null)
{
Color col = Color.FromName(cell.BackColor);
style.BackgroundColor = C1Color.FromARGB(col.A, col.R, col.G, col.B);
}
if (!string.IsNullOrEmpty(cell.Image))
{
Grid.Rows[range.Row].MinHeight = 200;
}
}
}
Best Regards,
Emil