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 need to be able to have my grid control be sized so it precisely fits X amount of rows.
My trouble is, how do I know how height my control should be? I first tried something like this:
for (int i=1;i
ADAdministrator Syncfusion Team February 11, 2004 07:41 PM UTC
A couple of comments. You need to start your loop from 0 and not 1. Row 0 is the Columns headers, so you need to account for that as well unless they are hidden. (The header row is little taller by default than the othe rrows).
You can use the method grid.Model.RowHeights.GetTotal to sum up row heights.
You can set the backcolor of the grid''s client area that is not occupied by cells (the gray part you mentioned) by setting grid.Properties.BackgroundColor.
MHMark HoffmanFebruary 11, 2004 10:01 PM UTC
Perfect! Thanks!
>A couple of comments. You need to start your loop from 0 and not 1. Row 0 is the Columns headers, so you need to account for that as well unless they are hidden. (The header row is little taller by default than the othe rrows).
>
>You can use the method grid.Model.RowHeights.GetTotal to sum up row heights.
>
>You can set the backcolor of the grid''s client area that is not occupied by cells (the gray part you mentioned) by setting grid.Properties.BackgroundColor.
>