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

Hiding or disabling a scrollbar

Thread ID:





28630 May 5,2005 06:01 PM UTC May 5,2005 07:03 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On May 5, 2005 06:01 PM UTC

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.

Administrator [Syncfusion]
Replied On May 5, 2005 06:32 PM UTC

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

Administrator [Syncfusion]
Replied On 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.


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