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.
I''m trying to figure out how to calculate the total height and width of the visible cells in a scrollable grid.
I need to know the total height and width including the any fixed header cells.
I was originally using the GridViewLayout.GetColRangeWidth() (and the equivalent for rows), but this weekend I finally upgraded from 1.5 to 2.0.5 and found that these methods have been deprecated.
Thanks.
Pete
ADAdministrator Syncfusion Team May 3, 2004 12:18 PM UTC
Try
int width = grid.ColWidths.GetTotal(0, grid.Cols.FrozenCount) + grid.ColWidths.GetTotal(grid.LeftColIndex, grid.Viewlayout.LastVisibleCol);
There are similar propeties/methods for RowHeights.
ADAdministrator Syncfusion Team May 3, 2004 12:21 PM UTC
Thanks Clay. That did it.
Pete Davis
>Try
>
>int width = grid.ColWidths.GetTotal(0, grid.Cols.FrozenCount) + grid.ColWidths.GetTotal(grid.LeftColIndex, grid.Viewlayout.LastVisibleCol);
>
>
>There are similar propeties/methods for RowHeights.