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.
Hi,
I'm having a little problem with sizes. I'm trying to fit dinamicaly the size of the list to the number of rows showed. The problem is that the list is always showing me a gap just below last row.
I attach a little project where you can reproduce the problem.
If I reduce the heigth of the list just only 1px, the HScrollBar appears, but I don't want to show the gray gap neither the HScrollBar.
Thanks,
Iván.
ADAdministrator Syncfusion Team November 21, 2003 09:45 AM UTC
In your sample, I think you can get what you want by using code like:
gridDataBoundGrid2.Size = new Size(244, 4 * 17);
gridDataBoundGrid2.HScrollBehavior = GridScrollbarMode.Disabled;
gridDataBoundGrid2.VScrollBehavior = GridScrollbarMode.Disabled;
gridDataBoundGrid2.DefaultRowHeight = 17;
instead of
gridDataBoundGrid2.Size = new Size(244, 85);
gridDataBoundGrid2.DefaultRowHeight = 17;