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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

scroll bars not disappearing :(

Thread ID:

Created:

Updated:

Platform:

Replies:

67538 Aug 22,2007 10:17 AM UTC Dec 30,2008 03:11 PM UTC WinForms 3
loading
Tags: GridControl
Touqeer Ahmed Ahson
Asked On August 22, 2007 10:17 AM UTC

if grid has more rows than area it has, then a vertical scroll bar appears, fine, however when we made the row count to 0 even then the scroll bar appears.
note if we set row count 1 or 2 then scroll bar disappears.
same is true for columns and horizontal scroll bars.

any suggestions? thanks....

Rajagopal [Syncfusion]
Replied On August 24, 2007 02:57 AM UTC

Hi Touqeer,

Thanks for your interest in Syncfusion Products.

Please try setting the VScrollBehavior and HScrollBehavior property for the gridcontrol that specfies the scrollbar behavior in grid. The below code will help you to have the scrollbars only when necessary.

this.gridControl1.VScrollBehavior = GridScrollbarMode.Automatic | GridScrollbarMode.AutoScroll;
this.gridControl1.HScrollBehavior = GridScrollbarMode.Automatic | GridScrollbarMode.AutoScroll;

Refer the below sample for more details
http://websamples.syncfusion.com/samples/Grid.Windows/F67538/main.htm

Have a nice time.
Regards,
Rajagopal

Saritha Malve
Replied On December 30, 2008 02:59 PM UTC

Im facing the same problem. I've also tried the following setting, but it doesnt help.

>Hi Touqeer,

Thanks for your interest in Syncfusion Products.

Please try setting the VScrollBehavior and HScrollBehavior property for the gridcontrol that specfies the scrollbar behavior in grid. The below code will help you to have the scrollbars only when necessary.

this.gridControl1.VScrollBehavior = GridScrollbarMode.Automatic | GridScrollbarMode.AutoScroll;
this.gridControl1.HScrollBehavior = GridScrollbarMode.Automatic | GridScrollbarMode.AutoScroll;

Refer the below sample for more details
http://websamples.syncfusion.com/samples/Grid.Windows/F67538/main.htm

Have a nice time.
Regards,
Rajagopal



Saritha Malve
Replied On December 30, 2008 03:11 PM UTC

I also observed in the sample that when row/column count is made 0, the scrollbars are still visible. Is this a bug with Essential Grid?


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.

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

;