How can I disable the Syncfusion Grid vertical scroll bar?

I want to show the whole grid without a vertical/horizontal scroll bar. I tried setting VScroll to false, but it did not work.

4 Replies

AD Administrator Syncfusion Team September 6, 2006 09:03 AM UTC

Hi Qingdong,

Please try this code for hide the Scrollbar in a grid.

this.grid1.HScrollBehavior = GridScrollbarMode.Disabled ;
this.grid1.HScroll = false;

this.grid1.VScrollBehavior = GridScrollbarMode.Disabled;
this.grid1.VScroll = false;

To have disabled and visible scrollbars, See the below sample.
http://www.syncfusion.com/Support/user/uploads/scrollbar_ef975a5a.zip

To support the sizing in the grid, see the following Kb article.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=304

Let me know if this helps.
Best Regards,
Haneef


QF Qingdong Fu September 6, 2006 09:28 AM UTC

I tried your demo. It worked very well. But my program did not.

I am using a virtual grid, which contains more than 10000 rows, at the same time, each row has its own height which calculated by GridQueryColHeight event handler.

At the intialization, I just set the size of the grid, like this.gridcontrol.Size = new Size(100, 200). Does it affect?


AD Administrator Syncfusion Team September 7, 2006 05:28 AM UTC

Hi Qingdong,

Please try the following sample and let us know if you have any issues
http://www.syncfusion.com/Support/user/uploads/ModifiedscrollbarHide_4c3a6c85.zip

Thanks,
Haneef


QF Qingdong Fu September 8, 2006 03:35 AM UTC

Thanks for your update. But my question still exists. I wonder it could be something else that affect it. I will take deeper debugging on it.

BTW, I am using Syncfusion Grid 2.1.

Loader.
Up arrow icon