I am creating summaries at design time and saving them in a layout file but when I load the layout file at runtime the summaries are not displayed.
I cannot create the summaries in code because I need to have multiple layouts and let the user chose their default layout.
Everything is saved in the layouts and it seems that everything is loaded at runtime except the summaries. When I manually reset and reload the layout at design time I can still see the summaries, so I know they are saved in the .lyt file but they won't show up at runtime.
At runtime I am manually binding to the same datasource I used at design time to design the layout. Same schema.The code below is what i am using to set the datasource and load the layout.
Am I missing anything?
Thanks,
>UltraGrid1.DataSource = ProductionDS>UltraGrid1.DataMember = ProductionDS.Tables(0).TableName.ToString>MyLayout = "C:\Temp\Layout1.lyt">UltraGrid1.DisplayLayout.Load(MyLayout)>UltraGrid1.DisplayLayout.Override.RowLayoutCellNavigationVertical = RowLayoutCellNavigation.Adjacent>UltraGrid1.UpdateMode = UpdateMode.OnCellChange>UltraGrid1.DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn>UltraGrid1.DisplayLayout.ScrollBarLook.ViewStyle = UltraWinScrollBar.ScrollBarViewStyle.Office2007
I can't see any reason why this would happen. I could understand if nothing at all was being loaded - that would indicate that the schema of the data source didn't match the schema in the saved layout. But if some parts of the layout are loading, then that's clearly not the case.
Perhaps something in your code is removing the summaries after you load the layout?
I can't figure it out either, the code I pasted above is all the code i am using, and it is in the form.load event.
I tried creating several layouts from scratch, in design time i always see the summaries and when i reset and reload the layouts in design time i still see the summaries, but not in run time!
I tried to explicitly set AllowSummaries = True and that displays the Sum button on the headers but I still can't see the summaries I created at design time.
I can create a sample project and send it to you if you think this is a bug, I am using 8.2
Talal Nehme