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

Hiding or disabling a scrollbar

Anyone know how to disable a scrollbar and keep it from being displayed for a gridcontrol? I do not want the horizontal scrollbar to be drawn.

2 Replies

AD Administrator Syncfusion Team May 5, 2005 06:32 PM UTC

try setting: this.gridControl1.HScrollBehavior = GridScrollbarMode.Disabled;

AD Administrator Syncfusion Team May 5, 2005 07:03 PM UTC

That is correct, and I now have my answer. However, what threw me off and led me to asking the question is that the following line: this.gridControl1.HScrollBehavior = Syncfusion.Windows.Forms.Grid.GridScrollbarMode.Disabled; must be called after: this.Controls.Add(this.gridControl1); When you set the HScrollBehavior in the designer to be disabled, it won''t disable the scrollbar since the designer generated code disables the scrollbar before it adds the grid control. I''m sure you now understand why I was asking such a simple question.

Live Chat Icon For mobile
Up arrow icon