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
455
Summary row not showing up when loaded from layout file
posted

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