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 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;

Loader.
Up arrow icon