Home Forums WinForms controls Xceed Grid for WinForms Designer support and deriving from GridControl?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #15897 |

    I have a pretty basic question that I just can’t seem to figure out. I’m doing the following:

    1) Create a new C# project.
    2) Add a UserControl to the project.
    3) Change the new class so it derives from Xceed.Grid.GridControl instead of UserControl.
    4) Remove the line “this.AutoScale = System.Windows.Forms.AutoScaleMode.Font” from InitializeComponent().
    5) Build the project — success!

    But now I can’t open a designer view of the new class! Visual Studio changes the node in the solution explorer to the general code icon instead of the user control icon. The subtype listed in the .csproj file is “Control”.

    So how do I properly derive a C# class from GridControl while retaining designer support? I’m using VS2005 with Xceed Grid 3.0.6113.0.

    Imported from legacy forums. Posted by Mike (had 1979 views)

    Xceed Support
    Member
    Post count: 5658

    If you derive from the GridControl, you will lose the designer. This is by design.

    Imported from legacy forums. Posted by CharlesB (had 2987 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.