Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Grid Scroll Magin Bug

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Grid Scroll Magin Bug
Link Posted: 14-Sep-2006 00:19
I have a grid as such:



However when I minimise the window and restore it the gird displays with a gap where a scroll bar should be - if required.



Anyone else experienced this, know how to fix?

I am using the latest FlyGrid9 v1.4.0.24.
Link Posted: 14-Sep-2006 04:42
Please let me know:
1. What .Net Framework is used? VS2003 & .Net 1.1 or VS2005 and .Net 2.0?
2. Did you used ColumnFitMode.Spring & ColumnsOptions.FitToWidth in this FlyGrid?
Link Posted: 19-Oct-2006 23:30
I'm using VS2005, .net 2.0.

My grid is declared as such:


//
// grdData
//
this.grdData.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
        | System.Windows.Forms.AnchorStyles.Left)
        | System.Windows.Forms.AnchorStyles.Right)));
//
//
//
this.grdData.Columns.Items.AddRange(new NineRays.Windows.Forms.Grids.Column[] {
this.colImage,
this.colDescription,
this.colDetail,
this.colEdit});
this.grdData.Columns.Options = ((NineRays.Windows.Forms.Grids.ColumnsOptions)(((((NineRays.Windows.Forms.Grids.ColumnsOptions.Clickable | NineRays.Windows.Forms.Grids.ColumnsOptions.ShowTooltips)
        | NineRays.Windows.Forms.Grids.ColumnsOptions.ShowSortOrderMark)
        | NineRays.Windows.Forms.Grids.ColumnsOptions.ChangeSortOrderOnClick)
        | NineRays.Windows.Forms.Grids.ColumnsOptions.FitToWidth)));
this.grdData.ForeColor = System.Drawing.SystemColors.ControlText;
this.grdData.Location = new System.Drawing.Point(6, 20);
this.grdData.Name = \"grdData\";
this.grdData.Opacity = 1;
this.grdData.SelectedUnfocusedBackColor = System.Drawing.SystemColors.Window;
this.grdData.SelectedUnfocusedForeColor = System.Drawing.SystemColors.ControlText;
this.grdData.Size = new System.Drawing.Size(338, 327);
this.grdData.TabIndex = 0;
//
// colImage
//
this.colImage.ReadOnly = true;
this.colImage.ShowTooltips = false;
this.colImage.Width = 19;
//
// colDescription
//
this.colDescription.ReadOnly = true;
this.colDescription.Width = 96;
//
// colDetail
//
this.colDetail.AllowSorting = false;
this.colDetail.FitMode = NineRays.Windows.Forms.Grids.ColumnFitMode.Spring;
this.colDetail.ReadOnly = true;
this.colDetail.Width = 197;
//
// colEdit
//
this.colEdit.ButtonCaption = \"...\";
this.colEdit.CellBackColor = System.Drawing.SystemColors.Control;
this.colEdit.CellValueAsButtonCaption = false;
this.colEdit.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.colEdit.Width = 20;
this.colEdit.CellValueAsButtonCaption = true;
this.colEdit.ButtonClick += new NineRays.Windows.Forms.Grids.ButtonColumnClickHandler(this.colEdit_ButtonClick);
Link Posted: 21-Oct-2006 04:16
Please let me know what control contains FlyGrid?
This is standard Windows.Forms control, or 3rd party?
Probably FlyGrid doesn't receive change size notifications to rectaclulate column widths. If you using 3rd party control - try to use standard Group contro or Panel control as replacementto solve this problem.
Link Posted: 02-Nov-2006 01:52
Hi, I tried as suggested, placing the grid in a panel and it had no effect.  Here is a more simple example.  This is a Control with a Panel with a Grid, all are at DockStyle = Fill.  The last 4 columns are Exact size, the 1st column is Spring.  On load or risize the grid consumes the entire width of the Control.  However minimise the window, then maximise and it appears as such...



You can see the auto scroll margin has appeared.
Link Posted: 06-Nov-2006 05:44
We've found and fixed this problem, the nearest update of FlyGrid - the mid of this week.
Link Posted: 09-Nov-2006 02:39
Thanks, new version has now fixed this bug.