The strangest thing has happened, and I don't really know how to fix it.
I have an application that shows 14 WinGrids. Each one of these displays a different piece of data to the user and all are bound to .NET Binding Sources for their data.
All of the grids show their data, and up until recently, all of them showed the SUM summary row in their respective columns.
Up until recently, this all worked just fine. At some point, however, in some version that I have developed, all of the SUM summaries disappeared. Thinking this was just the Windows Forms Designer messing with stuff it shouldn't (which seems to happen), I re-added all of the summaries to all of the grids' bands. These all show up in design-view, but when I actually run the application, they do not show up. I have created a test application to make sure that it was not something on my machine, and that seems to work fine. I have also removed all controls from the form and added a single grid and bound it to one of my binding sources, and it also does not show the summary row.
I am using NetAdvantage 8.1 Win CLR2x in my solution.
Help!
Hey Mike,
Using the 2009.2 version and I have exactly the same problem. A grid at design time has summaries but at run time they are not shown which is mind boggling. There is no code behind for this particular grid, just a simple grid, bound to a BindingList (displays data fine) and has on the bottom some sums. They are nowhere to be found when I run the application although they do appear in the designer.
I am not doing any saved layout loading or any manipulation of the view at runtime.
I tried creating a fresh grid on the page and bound it to the same data that one of the existing grids was using, and again, there is no totals in my summaries where they do show up as well at design time.
I'm at a loss as to how this can happen...I ONLY use the designer view for these grids.
If the summaries show up at design-time and not at run-time, then something in the code must be removing them.
Are you losing anything else? For example, if you change the width of a column in the grid at design-time, does it maintain that same width when you run the application?
Perhaps your project is loading a saved layout into the grid at run-time?