Hello, Bert,
You can use the following workaround:
private void RadVirtualGrid1_CellFormatting(object sender, VirtualGridCellElementEventArgs e)
{
if (e.CellElement.RowIndex >= 0)
{
switch (_font)
{
case 1:
var cell = e.CellElement as VirtualGridCellElement;
e.CellElement.Font = _arial825;
TextPart textPart = new TextPart(cell);
SizeF textSize = textPart.Measure(new SizeF(float.PositiveInfinity, float.PositiveInfinity));
if (textSize.Width > cell.Size.Width)
{
e.CellElement.Padding = new Padding(0, 3, 0, 0);
}
else
{
e.CellElement.Padding = new Padding(0);
}
break;
}
}
}
Regards,
Nadya | Tech Support Engineer
Progress Telerik