Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Version 1.4.0.45 broken? (no, VS problem with workaround)

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

Version 1.4.0.45 broken? (no, VS problem with workaround)
Link Posted: 24-Oct-2006 14:33
I've just had to rebuild my development machine, and as part of this I downloaded FlyGrid.Net v1.4.0.45, thinking to upgrade my project at the same time. I did install the license file as instructed, and deleted and re-added the DLL references.

However, it appears that this version is broken, and I'm unable to open my form   . When I attempt to open it in design mode, I get this error in the Designer:

One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.
Object must implement IConvertible.
Hide    

[list]
  • at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
  • [/*:m]
  • at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
  • [/*:m][/list:u]
    Link Posted: 25-Oct-2006 13:41
    Success!! You're going to think I'm insane when I describe the solution to you, but this is really what happened.

    I was trying to produce a simplified project to demonstrate. But when I had created skeletons of the dependent classes it started to work again. In the process of my editing, I had stupidly put these skeleton classes at the top of the Form's .cs file. When I tried to open it in the designer, it gave me an error message saying that the Form class had to be the first class, so I moved the skeletons to the bottom. Then it worked.

    So I did the same thing in my real project. I created a new class above the Form's class:
    public class Dummy{ public int myint; }

    Then I saved it, opened the designer, and got the error. Then I deleted the Dummy class, opened the designer, and everything was OK again.

    This really sounds like a Visual Studio bug, doesn't it?
    Link Posted: 25-Oct-2006 22:44
    This really sounds like a Visual Studio bug, doesn't it?

    Seems, you've used Visual Studio 2005. Visual Studio 2003 require keep form class declaration on the top of the .cs file.
    Link Posted: 25-Oct-2006 23:28
    [quote="NineRays"]Seems, you've used Visual Studio 2005. Visual Studio 2003 require keep form class declaration on the top of the .cs file.

    Actually this is VS 2005, and this version has the same requirement. It was triggering this error and then correcting it, that solved my problem.