We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Problems with sizes

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.

1 Reply

AD Administrator Syncfusion Team November 21, 2003 04:45 AM

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;

Loader.
Live Chat Icon For mobile
Up arrow icon