I have a grid control embedded in an extrasection of a ggc. Everything seems to work fine with the exception of a horizontal scrollbar in the extra section. I can't seem to get rid of it.
I have the setting below for the ggc ...
this.gridGroupingControl1.TableModel.Options.WrapCellBehavior = GridWrapCellBehavior.WrapRow;
...and the gridcontrol is configured like...
private void InitializeGridControl()
{
this.gridControl1.ThemesEnabled = true;
this.gridControl1.Properties.ColHeaders = false;
this.gridControl1.Properties.RowHeaders = false;
this.gridControl1.RowCount = 1;
this.gridControl1[1, 1].Text = "1";
this.gridControl1[1, 2].Text = "2";
this.gridControl1[1, 3].Text = "3";
this.gridControl1[1, 4].Text = "4";
//this.gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(1, 1, 1, 4));
this.gridControl1.ColCount = this.gridGroupingControl1.TableModel.ColCount + 2;
this.gridControl1.HScrollBehavior = GridScrollbarMode.Disabled;
this.gridControl1.VScrollBehavior = GridScrollbarMode.Disabled;
this.gridControl1.Properties.BackgroundColor = Color.GhostWhite;
this.gridControl1.TableStyle.Borders.All = new GridBorder(GridBorderStyle.None);
this.gridControl1.QueryColWidth += new GridRowColSizeEventHandler(gridControl1_QueryColWidth);
}
I am not sure if this is the scrollbar of the panel (the panel has AutoScroll=false).