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

scroll bars not disappearing :(

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

3 Replies

RA Rajagopal Syncfusion Team 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


SM Saritha Malve 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




SM Saritha Malve 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?


Loader.
Live Chat Icon For mobile
Up arrow icon