I need to create a custom grid control that would inherit from ultragrid win control. I am using 8.1 CLR 2x. Does any one have a simple example or a sample solution? thanks in advance
It's very simple. Add a CustomControl to your project and change the inheritance from "Control" to "UltraGrid". Build your project and then you can drag your grid from the toolbox.
I have a custom control like that with many features that I plan to upload to the forum soon.
Be aware that if you change a property in your grid that declared inside another property, it will be copied to each grid you drag. For example, if you change a property in DisplayLayout.Override.something, each grid you drag will set this property in the designer code, so if you delete this line in the custom control, it won't be deleted in any grid you dragged before the change (If someone knows how to make it default, I'll be glad to know).
This is what I did :
Imports Infragistics.Win.UltraWinGrid
Public Class GridBase Inherits UltraGrid
End Class
And heres the error I am getting:
UltraGrid' is ambiguous in the namespace Infragistics.Win.UltraWinGrid
Any ideas
Do you have two references for two diferrent versions of NetAdvantage?
Yes I have referenced:
Infragistics2.win.v8.1Infragistics2.win.v8.1Infragistics2.Win.UltraWinGrid.v81.Infragistics2.Win.UltraWinGrid.v8.2
am I missing any other references?
Well, that's no good. You should not be referencing two different versions of the same assemblies in the same project. That's why you are getting an error.