Hi,
Please can anyone help with a problem I'm experiencing with the UltraGrid?
When I drop an UltrGrid onto a WinForm the control appears at the bottom of the form (in the area where you'd expect to see ToolStrip or BindingSource controls), the Grid itself is not displayed on the actual form design area.
When I look at the code generated in the designer it is....
Private Sub InitializeComponent() Me.UltraGrid1 = New Infragistics.Win.UltraWinGrid.UltraGrid CType(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.Font Me.ClientSize = New System.Drawing.Size(284, 262) Me.Name = "Form1" Me.Text = "Form1" CType(Me.UltraGrid1, System.ComponentModel.ISupportInitialize).EndInit() Me.ResumeLayout(False)
End SubFriend WithEvents UltraGrid1 As Infragistics.Win.UltraWinGrid.UltraGrid
I noticed that the line Me.Controls.Add(Me.UltraGrid1) was missing and I added it in. This caused the Grid to appear on the form but it still wasn't right as it can't be selected or moved etc. Even when I right click on grid, the popup menu is missing items such as the UltraGrid Designer, Layout Wizard etc..
To confuse matters further, other colleagues working on the same project do not have any problem and this would imply it's my setup rather than the project. However, if I create a new project then I can add grids to forms without any issue.
I'm using version 8.3.20083.2102 of the UltraWinGrid.
Thanks,
Paul
Hi Miker55
I see now what you mean. You have locally the referenced version in a separate location and you want to use them. Generally you can’t do that because of the fact you don’t have installed the version 10.x to your machine, even if you have references and copied them locally the VS will open the license and will see that you don’t have registered the correct version. As you know the license is per version and developer and is for the VS designer. So you can work on the project but when you open the design of the forms you need an license for the version. If you need to work on this version and you will work on the design time, then you need to have this version installed on your machine.
I hope this answer your question.
Hmmm I think there is a disconnect in our conversation.
I have a folder full of Infragistics v10 dlls
I have installed Infragistics v12.1
The project is referencing the dlls in the folder (v10), but VS is trying to use the installed version (v12.1) to render the designer. Is there anyway I can get Visual Studio to ALWAYS use the referenced dlls instead of the installed dlls?
If you do that, the VS should use the installed version. And the references will be updated to point on the installed, so you should avoid any designer issue unless you have different versions in to your license file. That’s why we recommend to clear it.
If I do that, VS should use the installed version or the referenced version?
The problem I encountered was because my installed version was a different version than those referenced, and the installed version was being used by VS to render the designer instead of using the referenced version.
Hi Miker55,
I am glad to hear that everything is working. To avoid this issue in feature we recommend to use “Specific Version” and “Copy local” set to false for your references. Then the VS will use the version that will have installed locally.