Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1185
Custom Datasource and several grids causing designer to endlessly loop
posted

I created a complex hierarchical data source following the instructions in the FAQ article "subclassing a WinDataSource to reportsent a business class. This made using the grids in the designer much easier, - I could set almost everything visually instead of using raw code. This has worked quite nicely, except in the situation I now have, on a very complex tabbed form.

The data source has three levels, with several lists at level 2. The top level is shown on one grid (which acts as the master selection control), and the other lists at level 2 are in individual grids to make it obvious to the user what data they are manipulating. A final grid starts with a L2 source, but has two levels itself. This latter one is the problem - as soon as I added this control, every compile causes Visual Studio to pause for increasing periods of time. Finally, every compile seems to make it endlessly loop - and simply editing single items in the designer on this form can cause the same problem.

I assume there is a problem with the data source being recompiled each time - causing the controls on the design screen to refresh their generated code, and somehow this is looping - but why did it work before, and only fail when the last grid was placed?

Is there some way of telling the grids that the data source has NOT changed - or somethig to manually intervene here - or is it simply a bug?

I just upgraded to 2008.3...

The visual layout i have is essential because the user needs to visualise quite a complex set of relationships, and placing them on nested dialogs would be very inelegant - and much harder to use.