I keep getting the following error message when I run my application. It matters not if I select Yes or No, it keeps appearing. At some point in time it will stop. How do I make it really go away?
Hi,
I'm afraid I am at a loss to explain this.
The prompt you are getting indicates that the DataSource (or DataMember) property of the UltraTree has been changed and the current ColumnSets may be invalid. This message should only ever appear at design-time and only when these properties change.
Perhaps something in your application is causing the DataSource to change for some reason. Although I can't see how binding the grid would have anything to do with it.
You can turn off the automatic generation of ColumnSets by setting tree.ColumnSettings.AutoGenerateColmunSets to false. But then you will need to generate the ColumnSets yourself. Or perhaps set this property back to true in the form's constructor (after the call to InitializeComponent).
All of this is, of course, just a workaround and doesn't really address the issue.
Are you able to duplicate this in a small sample project you could post here so we can try it out?
An update on this.
I had my co-worker compile my code after the above change and it worked for him. Then I had him go in and remove the data binding, compile and run. He got the same error message and it also crashed Visual Studio 2008. When he, and now me, clean the solution after changing the UI, it runs fine. It is only after making a change in the UI builder and NOT cleaning the whole solution that it crashes.
Sam
I just got done rebuilding my machine from scratch because of this issue and a few others issues. This issue is back. What is the definition of "older version of the tree"?
I am using NetAdvantage_WinForms_20091.exe, aka 2009 vol 1
Yesterday, after the rebuild, everything was fine. I was able to go in and make non UI changes and the dialog never appeared. Just now I went into a UI that has a dockManager and a lot of other controls (see attached screen shot below). All I did was wire up data binding on the name of the ultraGrid that is circled in the screen shot. I am now getting the error message and when I click on either Yes or No, Visual Studio crashes!
Hi Sam,
This dialog should only show up at design-time, it should show up at run-time.
My first guess is that you are using an older version of the tree and that this is a bug that was fixed a long time ago. So I recommend that you get the latest service release and see if that helps:
How to get the latest service release - Infragistics Community
A little more info might be helpful...
This dialog appears BEFORE any UI from my application but does not block my application from running. I can either move the first screen out of the way and click on either <yes> or <no> to make it go away, or wait until I am done running my program to deal with it.
This also happens on my another developers machine who has never modified any of my code. He is simply building the code, running to make sure it runs, and then pulls out all the user controls and other assemblies into the bigger project. This dialog does NOT appear when he uses my code in the bigger project.
It looks like it is a Visual Studio issue dialog, not something coming from my application.