I have an UltraGrid located on the first tab of an UltraTabControl. When I add a UserControl to the RowEditTemplate, design mode breaks. Whats the deal? If you stick with built in controls either infragistics or MS, all is fine.
Here is a pic of the error message:
http://twitpic.com/3rjdbl
When I remove the UserControls from the RowEditTemplate, design mode works again. Is there some kind of bug here?
-Ken
Hi Ken,
This error message doesn't say much, and you didn't post the call stack, so it's hard to guess what's happening here.
Can you post a small sample project demonstrating the error so we can check this out? You can attach files to your posts on the Options tab.
So here is the fix. I removed the databinding generated code from the designer file and into the forms constructor....like so.
public AnalysisProfileForm(){ InitializeComponent(); this.eligibleDaysFilters1.DataBindings.Add(new System.Windows.Forms.Binding("Days", this.ultraGridRowEditTemplate, "Days", true)); this.timeFormatter.DataBindings.Add(new System.Windows.Forms.Binding("TimeRange", this.ultraGridRowEditTemplate, "TimeRange", true)); this.DoubleBuffered = true; this.UpdateStyles();}
I will try to come up with a sample the first break I get.
Hm, that's odd. Except for the accessing of the grid's BindingContext, there's nothing in the call stack that even references the Infragistics assemblies. Looks like this might be a bug in Visual Studio. If you can post a small sample project demonstrating the error, I'd be happy to take a look at it. But I can't get the problem to occur on my machine with the information you have here.