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.

How can I disable the Syncfusion Grid vertical scroll bar?

Thread ID:

Created:

Updated:

Platform:

Replies:

48901 Sep 6,2006 04:30 AM Sep 7,2006 11:35 PM Windows Forms 4
loading
Tags: GridControl
Qingdong Fu
Asked On September 6, 2006 04:30 AM

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

Administrator [Syncfusion]
Replied On September 6, 2006 05:03 AM

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

Qingdong Fu
Replied On September 6, 2006 05:28 AM

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?

Administrator [Syncfusion]
Replied On September 7, 2006 01:28 AM

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

Qingdong Fu
Replied On September 7, 2006 11:35 PM

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.

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.

;