The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator Syncfusion Team April 7, 2004 06: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
CHchrisApril 8, 2004 07: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