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


CH chris 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

Loader.
Up arrow icon