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

No scrollbars for GridRepeaterControl

Thread ID:

Created:

Updated:

Platform:

Replies:

38023 Dec 5,2005 01:57 AM Dec 8,2005 12:30 AM Windows Forms 2
loading
Tags: GridControl
Stephen New
Asked On December 5, 2005 01:57 AM

Hi, I am implementing a grid in my app which is based on the RepeaterUserControl in the Syncfusion samples. It works pretty well but, for some reason, the scroll bars (vertical & horizontal) are not appearing even though there are grid cells that are off the screen. Does anybody have any quick ideas why this might not be working for me? I can see that distributed sample does not suffer from this problem...but I cannot spot the difference between the sample and my own attempt. Anyone else had the same problem? Thanks.

stanleyj [Syncfusion]
Replied On December 5, 2005 05:12 AM

Hi Stephen, What might be happening is that the grid is being sized and positioned before its parent has been placed in its final position/size. This may leave the grid thinking that it is much bigger than its parent, and may affect whether its thinks it needs scrollbars or not. (This type of problem is really dependent upon when/how the grid and its parent is made visible for the first time.) Just something to try. Instead of locating the repeater control where you are putting it (usually either on a form or usercontrol or tab page), instead, first put a Panel there, and then put the repeater control (docked=fill) in the panel. This may avoid the problem. Best regards, Stanley

Stephen New
Replied On December 8, 2005 12:30 AM

Thanks for your suggestion, Stanley. It seems that the problem was related to my user control (within the RepeaterControl) being excessively wide. By adjusting the width of this user control I could see that, past a certain width, the scroll bars would not appear (or perhaps they were pushed off the edge of the parent control?). Anyway, I seem to have gotten around it by redesigning the user control to be less wide. Cheers, Stephen. >Hi Stephen, > >What might be happening is that the grid is being sized and positioned before its parent has been placed in its final position/size. This may leave the grid thinking that it is much bigger than its parent, and may affect whether its thinks it needs scrollbars or not. (This type of problem is really dependent upon when/how the grid and its parent is made visible for the first time.) > >Just something to try. Instead of locating the repeater control where you are putting it (usually either on a form or usercontrol or tab page), instead, first put a Panel there, and then put the repeater control (docked=fill) in the panel. This may avoid the problem. > >Best regards, >Stanley

CONFIRMATION

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.

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.

;