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
Hello,
Installing the service release and dragging component form the toolbox may cause this designer issue if your toolbox wasn’t not updated with the correct versions of the dll’s. It’s appear that the VS can’t find the correct dll’s. Can you please check which version your toolbox is pointing and if is pointing the old version then try to add the new versions to the toolbox and use them to your application.
Please confirm whether you have run the Toolbox Utility. Failure to do so can also lead to the controls being shown in the tray instead of the form. If you have not run the toolbox utility then I would suggest you to run the Toolbox Utility or manually remove and re-add the controls into the toolbox.
Also I am recommending you to clear the content of the license file if you are experiencing this in existing project.
I hope this helps.
Sincerely,
Dimi
Developer Support Engineer
Infragistics, Inc.
Mike/Dimi,
Thanks for your help!
I've reinstalled NetAdvantage and run the Toolbox Utility as you have both suggested and it all appears to be working fine now.
Thanks again for your help and advice.
I recently upgraded from v10.1 to v12.1 and am unable to see the grid in the designer for new forms and can not selected the grid on old forms (it appears normally except w/o the "Start" button to configure).
I have uninstalled and re-installed everything except v10.1, and used the toolbox utility to no avail. This actually happening with any Infragistics control I try.
*EDIT* More info: we are inheriting the controls in another project. The functionality I'm experiencing is the same in that project.
-Mike
Hi Miker55,
The problem you are describing is slightly different as you mentioned that you upgraded and you don’t see any longer the designer of the grid. Wherewer I am not sure what do you mean by “new forms – newly created with 12.1? ” Can you please double check that you have deleted the continent of the license file while all the forms are closed. Note that you don’t need to remove any of the versions and if you have to upgrade to 12.1 you should be sure you are updating all of the references in your project and they point to the same location and version. Also when you create the new forms see which version of the components did you use, did you have multiple versions of the Infragistics dlls in to your project?
After much frustration, I figured out the problem was related to the versions.
Our application was directly referencing 12.1.20121.2075 DLLs in a project folder and I had 12.1.20121.2082 installed on my machine. Apparently, Visual Studio 2010 was using the installed version for the designer. Since they didn't match, the designer was not displaying anything. Once I updated the reference files, everything worked out great.
Thanks for your help Dimi.
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.
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 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.