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.
How, in a GridControl, do I get the grid to automatically adjust the row height''s of the header rows to accomodate the header row''s text when it wraps (or when a user shrinks or expands the column width)?
Thanks,
Andy
ADAdministrator Syncfusion Team November 1, 2004 11:22 AM UTC
You have to explicitly call
grid.Model.RowHeights.ResizeToFit, passing a range object and an options object. To resize headers, you need to make sure the options have the IncludeHeaders flag turned on.
grid.Model.RowHeights.ResizeToFit(someRange, GridResizeToFitOptions.IncludeHeaders);
ADAdministrator Syncfusion Team November 1, 2004 07:02 PM UTC
I had to put the ResizeToFit call in a couple places (after I load the data into the grid and then again inside a ColWidthsChanging handler) and then that worked.
Is there no way to flag a particular row so that it is automatically resized when it''s cells'' content or width has changed?
If not, can I put that in as a feature request?
Thanks,
Andy
ADAdministrator Syncfusion Team November 1, 2004 07:17 PM UTC
There is a AutoSize style property that you can set which will allow the cell to autosize as your user types into the cell. But if you programatically change the cell value, then you have to explicitly call ResizeToFit.