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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to remove the scroll bar in gridcontrol?

Thread ID:





12684 Apr 7,2004 05:22 PM UTC Apr 8,2004 12:41 PM UTC WinForms 2
Tags: GridControl
Asked On April 7, 2004 05:22 PM UTC

Hi I have a gridcontrol whihc will always hold 4 row (9 column) data. I put it in a panel (dock as fill) and its size is fixed. If I load the data, no scrollbar will show up. However, if I do not load the data, the grid will always show scrollbar though the grid is empty. How can I disable the scrollbar and never let it show up? Thanks a lot Chris

Administrator [Syncfusion]
Replied On April 7, 2004 11:17 PM UTC

Hi Chris, Have you tried setting the HScrollBehavior and/or VScrollBehavior properties on the grid? //C# this.gridControl1.HScrollBehavior = GridScrollbarMode.Disabled; this.gridControl1.VScrollBehavior = GridScrollbarMode.Disabled; ’VB.NET Me.GridControl1.HScrollBehavior = GridScrollbarMode.Disabled Me.GridControl1.HScrollBehavior = GridScrollbarMode.Disabled Regards, Jay N

Replied On April 8, 2004 12:41 PM UTC

Thanks. It works. Actually, I tried to disable scrollbar from the Property Window in VS Studio. SOmehow, I can not find VScrollBehavior propery. After disabling it by typing in the codes, it works. >Hi Chris, >Have you tried setting the HScrollBehavior and/or VScrollBehavior properties on the grid? > > >//C# >this.gridControl1.HScrollBehavior = GridScrollbarMode.Disabled; > >this.gridControl1.VScrollBehavior = GridScrollbarMode.Disabled; > >’VB.NET >Me.GridControl1.HScrollBehavior = GridScrollbarMode.Disabled > >Me.GridControl1.HScrollBehavior = GridScrollbarMode.Disabled > > >Regards, >Jay N


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon