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.
It would be nice to have a MinHeight in the g.Model.RowHeights.ResizeToFit() since sometimes the row height can be bigger to make it look less cluttered
TIA,
Peter
ADAdministrator Syncfusion Team April 19, 2004 10:33 PM UTC
There is a static member of GridCellModelBase, MeasureEmptyCellString, that determines what size the ResizeToFit will use for an empty cell. So if you include the RowHeaders in your resizing range (as the row headers have not text), then this member will trigger a minimum size.
GridCellModelBase.MeasureEmptyCellString = "Wg;\r\nWg;";
this.gridDataBoundGrid1.Model.RowHeights.ResizeToFit(GridRangeInfo.Table());