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.

scroll bars not disappearing :(

Thread ID:

Created:

Updated:

Platform:

Replies:

67538 Aug 22,2007 06:17 AM Dec 30,2008 10:11 AM Windows Forms 3
loading
Tags: GridControl
Touqeer Ahmed Ahson
Asked On August 22, 2007 06:17 AM

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 23, 2007 10:57 PM

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 09:59 AM

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 10:11 AM

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.

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.

;