Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1255
VertScrollBar property not working
posted

Hi, We have a lot of data in the grid cell (see below picture ),  so I set VertScrollBar to true so that the user can scroll to see all the data.  But it's not working,  I dont' see any scroll bar in the cell.  Can anyone help ?  This is the setting of the grid  (We have three columns in the grid, but two of them are hiding)

   //Grid setting
   _filterGrid.DisplayLayout.Override.CellClickAction = CellClickAction.RowSelect;
   _filterGrid.DisplayLayout.Override.SelectTypeRow = SelectType.Extended;
   _filterGrid.DisplayLayout.Override.RowSelectors = DefaultableBoolean.True;
   _filterGrid.DisplayLayout.Override.RowSizing = RowSizing.AutoFree;
   _filterGrid.DisplayLayout.Override.RowSizingAutoMaxLines = 5;

   _filterGrid.DisplayLayout.Override.HeaderClickAction = HeaderClickAction.Select;
   _filterGrid.DisplayLayout.Override.SelectTypeCol = SelectType.None;
   _filterGrid.DisplayLayout.Override.HeaderStyle = HeaderStyle.Standard;
   _filterGrid.DisplayLayout.Override.TipStyleCell = TipStyle.Hide;

   _filterGrid.DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn;
   _filterGrid.DisplayLayout.Override.ColumnAutoSizeMode = ColumnAutoSizeMode.AllRowsInBand;
   _filterGrid.DisplayLayout.Override.ColumnSizingArea = ColumnSizingArea.EntireColumn;
   _filterGrid.DisplayLayout.Override.RowSizingArea = RowSizingArea.EntireRow;

   _filterGrid.DisplayLayout.MaxColScrollRegions = 1;
   _filterGrid.DisplayLayout.MaxRowScrollRegions = 1;

   _filterGrid.DisplayLayout.Scrollbars = Scrollbars.Automatic;
   _filterGrid.DisplayLayout.ScrollBarLook.ShowMinMaxButtons = Infragistics_Globals.TRUE_BOOL;
   _filterGrid.DisplayLayout.ScrollBounds = ScrollBounds.ScrollToFill;
   _filterGrid.DisplayLayout.ScrollStyle = ScrollStyle.Immediate;
   _filterGrid.Dock = DockStyle.Fill;

   TabIndex = 0;
   _filterGrid.DisplayLayout.BorderStyle = UIElementBorderStyle.Solid;


   _filterGrid.DisplayLayout.Appearance.BackColor = SystemColors.Window;
   _filterGrid.DisplayLayout.Appearance.BorderColor = SystemColors.InactiveCaption;

   _filterGrid.DisplayLayout.Override.ActiveRowAppearance.BackColor = SystemColors.Highlight;
   _filterGrid.DisplayLayout.Override.ActiveRowAppearance.ForeColor = SystemColors.HighlightText;

   _filterGrid.DisplayLayout.Override.RowAppearance.BackColor = SystemColors.Window;
   _filterGrid.DisplayLayout.Override.RowAppearance.BorderColor = Color.Silver;
   _filterGrid.DisplayLayout.LoadStyle = LoadStyle.LoadOnDemand;

   _filterGrid.DisplayLayout.Override.AllowDelete = Infragistics_Globals.FALSE_BOOL;
   _filterGrid.DisplayLayout.Override.AllowUpdate = Infragistics_Globals.FALSE_BOOL;
   _filterGrid.DisplayLayout.Override.AllowGroupBy = Infragistics_Globals.FALSE_BOOL;
   _filterGrid.DisplayLayout.Override.AllowRowFiltering = Infragistics_Globals.FALSE_BOOL;


   _filterGrid.Size = new Size
    (
    VIEW_SETTING_WIDTH,
    VIEW_SETTING_HEIGHT * 2 / 3 - 20);

   //Column setting
   var curBand = _filterGrid.DisplayLayout.Bands[0];

   if (curBand.Columns.Count > 0)
   {
    curBand.Columns[1].Hidden = true;
    curBand.Columns[2].Hidden = true;
    var curColumn = curBand.Columns[0];

    curColumn.Header.Caption = "Filters Applied";

    curColumn.Header.Appearance.ForeColor = Globals.ForeColor_NonEditable_Header;
    curColumn.Header.Appearance.BackColor = Globals.BackColor_NonEditable_Header;
    curColumn.Header.Appearance.BackColor2 = Globals.BackColor_NonEditable_Header;
    curColumn.Header.Appearance.FontData.Bold = DefaultableBoolean.True;

    curColumn.CellAppearance.ForeColor = Globals.ForeColor_NonEditable_Cell;
    curColumn.CellAppearance.BackColor = Globals.BackColor_NonEditable_Cell;
    curColumn.CellAppearance.BackColor2 = Globals.BackColor_NonEditable_Cell;

    curColumn.VertScrollBar = true;
    curColumn.CellMultiLine = DefaultableBoolean.True;
   }