The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
JSJayapradha S Syncfusion Team February 19, 2016 12:33 PM UTC
Hi Yapwen,
Thank you for contacting Syncfusion Support. You can achieve your requirement by overriding the GridPrintManager Class and GetRowHeight method as shown below,
protectedoverridedouble GetRowHeight(object record, int rowindex)
{
if(record != null)
{
var actualrowindex = GridIndexResolver.ResolveToRowIndex(this.dataGrid, rowindex);
if (this.dataGrid.GridColumnSizer.GetAutoRowHeight(actualrowindex, gridRowSizingOptions, out Height))
{
return Height;
}
}
returnbase.GetRowHeight(record, rowindex);
}
}
In GetRowHeight method we have resolved rowindex using ResolveToRowIndex. Since GetRowHeight method receives the RecordIndex value. We will fix this issue in our upcoming release to pass rowindex, so you do not have to use ResolveToRowIndex.