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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problems with sizes

Thread ID:





8819 Nov 21,2003 08:58 AM UTC Nov 21,2003 09:45 AM UTC WinForms 1
Tags: GridControl
Ivan Fernandez
Asked On November 21, 2003 08:58 AM UTC

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.

Administrator [Syncfusion]
Replied On 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;


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon