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

How to remove the scroll bar in gridcontrol?

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

2 Replies

AD Administrator Syncfusion Team April 7, 2004 07:17 PM

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


CH chris April 8, 2004 08:41 AM

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

Loader.
Live Chat Icon For mobile
Up arrow icon