Hi,
I'm trying to add an UltraGrid onto a new form in an existing project but I'm experiecing strange behaviour...
UltraGrid1 appears as a control at the bottom of the form (in the area where the you'd expect to see the ToolStrip or BindSource controls). Nothing is actually displayed on the form itself.The Designer code that is created looks like this...Private Sub InitializeComponent()Me.UltraGrid1 = New Infragistics.Win.UltraWinGrid.UltraGridCType(Me.UltraGrid1, System.ComponentModel.ISupportInitialize).BeginInit()Me.SuspendLayout()''UltraGrid1'Me.UltraGrid1.Location = New System.Drawing.Point(0, 0)Me.UltraGrid1.Name = "UltraGrid1"Me.UltraGrid1.TabIndex = 0''Form1'Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.FontMe.ClientSize = New System.Drawing.Size(284, 262)Me.Name = "Form1"Me.Text = "Form1"CType(Me.UltraGrid1, System.ComponentModel.ISupportInitialize).EndInit()Me.ResumeLayout(False)End Sub
Friend WithEvents UltraGrid1 As Infragistics.Win.UltraWinGrid.UltraGrid
Initially it just looked as though the designer was missing the line..Me.Controls.Add(Me.UltraGrid1)However, when this line is added, the grid appears on the form but cannot be selected at all. When right clicking there's no option for the UltraGrid designer / Layout wizard etc)
I'm currently using Version 8.3.20083.2102.
To confuse matters further, if I create a new project and add a new form, all works fine and would imply that this issue is specific to this project. Other colleagues working on the same project do not have this problem.I would be grateful if anyone could offer any assistance.Thanks Paul
When the grid appears as a component in the system tray instead of as a control on the form, it indicates that Visual Studio is unable to find the grid's designer.
This can happen if your project contains mixed references of the assemblies. So checking the project references and the licx file is a good idea.
If your solution has multiple projects, be sure to check all of them and make sure they all reference the same versions of the Infragistics assemblies.
Also, check the Assembly folder on your machine and make sure that the Infragistics2.Win.Design assembly exists for the same version as the grid assembly you are using. If it's not there, then something went wrong with the installation.
Also make sure that the design assembly is NOT references by any of the project in your solution. This file should only exists in the GAC, and you should never reference it directly from a project.