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.