Home - Forums-.NET - FlyGrid.Net (Windows Forms) - grid properties issue with vs2005

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 properties issue with vs2005
Link Posted: 01-Dec-2005 03:17
Hi,
even with version 1.2.8, it generates :

Me.dgDetail.Options = CType(NineRays.Windows.Forms.Grids.GridOptions.WantTabs, Default,NineRays.Windows.Forms.Grids.GridOptions)


and Default is a keyword, so generates error

can u fix this please ?

thx

[EDIT]
After playing around a bit with the grid I can confirm that it is really messy as the code generated by the designer isn't correct in VS2005.
I thought this was one of the fix of this new grid ?
[EDIT]
Link Posted: 01-Dec-2005 18:10
This problem is fixed in the latest update (2.12.05, v1.2.8).
Link Posted: 01-Dec-2005 22:41
Thanks. This problem is fixed, but there are other issues.
If you set properties of the grid such as Columns.Movable or Columns.Sort to False, then it gets reset to True when you compile...
Can you have a look at it please ?
Link Posted: 03-Dec-2005 12:27
I've tried to play with Columns.Options in the VS2005, but have not found any incorrectness, all options after closing form designer and after compiling is the same.
Please update FlyGrid.Net to the latest date file, this version has new options converter that help to more orrectly serialize options into code in the VS2005.
Link Posted: 04-Dec-2005 22:29
Maybe I should mention I have VS2005 Beta 2, not the final release... I don't know if that makes any difference.
But I insist that I'm using the latest version of the grid, and after I've compiled, the width of the grid is set to some silly value (29986), and all the option I've set in the designer for columns and rows are reset.

In fact I don't see any code generated for the rows and columns option. The only code generated is the following:

      
  Me.dgWebDesigns.Location = New System.Drawing.Point(12, 60)
        Me.dgWebDesigns.Name = "dgWebDesigns"
        Me.dgWebDesigns.Opacity = 1
        Me.dgWebDesigns.Options = CType(((NineRays.Windows.Forms.Grids.GridOptions.RowSelect Or NineRays.Windows.Forms.Grids.GridOptions.WantTabs) _
                    Or NineRays.Windows.Forms.Grids.GridOptions.[Default]), NineRays.Windows.Forms.Grids.GridOptions)
        Me.dgWebDesigns.Size = New System.Drawing.Size(687, 243)
        Me.dgWebDesigns.TabIndex = 41
        Me.dgWebDesigns.Text = "FlyGrid1"

For example if you set the columns property ChangeSortOrderOnClick to False, I don't see any code genreated there...

As we've had the exact same problem with VS2003 in the past, I'm wondering if it's not the same  bug again...

Other issue: during installation the Flygrid control should be added to the VS2005 toolbox. it says it was successfully installed but in fact it does not appear in the toolbox.
Link Posted: 05-Dec-2005 19:49
I've test FlyGrid.Net 1.2.8 on VS2003 and VS2005(Release), VB and C#,
Rows and Columns serialized into the code correctly:

'
      'treeviewGrid
      '
      Me.treeviewGrid.BackColor = System.Drawing.SystemColors.Info
      '
      'treeviewGrid.Columns
      '
      Me.treeviewGrid.Columns.Items.AddRange(New NineRays.Windows.Forms.Grids.Column() {Me.treeViewColumn})
      Me.treeviewGrid.Columns.Options = CType((NineRays.Windows.Forms.Grids.ColumnsOptions.HotTrack Or NineRays.Windows.Forms.Grids.ColumnsOptions.FitToWidth), NineRays.Windows.Forms.Grids.ColumnsOptions)
      Me.treeviewGrid.Dock = System.Windows.Forms.DockStyle.Left
      Me.treeviewGrid.ForeColor = System.Drawing.SystemColors.WindowText
      Me.treeviewGrid.Images = Me.imageList
      Me.treeviewGrid.Location = New System.Drawing.Point(0, 0)
      Me.treeviewGrid.Name = "treeviewGrid"
      Me.treeviewGrid.Opacity = 1
      Me.treeviewGrid.Options = CType(((NineRays.Windows.Forms.Grids.GridOptions.ReadOnly Or NineRays.Windows.Forms.Grids.GridOptions.ShowFocusRectangle) _
                  Or NineRays.Windows.Forms.Grids.GridOptions.PixelHorzScrollbar), NineRays.Windows.Forms.Grids.GridOptions)
      '
      'treeviewGrid.Rows
      '
      Me.treeviewGrid.Rows.DefaultRowHeight = 17
      Me.treeviewGrid.Rows.Options = CType(((NineRays.Windows.Forms.Data.RowsOptions.Moveable Or NineRays.Windows.Forms.Data.RowsOptions.ShowRowHeaders) _
                  Or NineRays.Windows.Forms.Data.RowsOptions.Default), NineRays.Windows.Forms.Data.RowsOptions)
      Me.treeviewGrid.Size = New System.Drawing.Size(424, 395)
      Me.treeviewGrid.Style = NineRays.Windows.Forms.Grids.GridStyle.XP
      Me.treeviewGrid.TabIndex = 40
      '
Link Posted: 05-Dec-2005 23:58
Please accept my appologie. It seems the issue was related to the fact that we were using VS2005 BETA 2, and not the final release. We are still not using the final, but we moved to the Visual Basic Express edition. The grid designer works fine. The only one problem we have is still related to the licence file. We are doing as we've always done with VS2003, that is we put a local copy of the dll's + the licence file in our project's Bin directory. But the splash screen keeps appearing at compilation and then at execution. We've tried to reference the dll's from ProgramFiles/9Rays/Bin but it does the same.
Can you help ?

Many thanks