SaveLayout problems

15 replies. Last post: September 27, 2016 3:42 PM by John Bonin
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
John BoninMember

I am trying to Save/Restore a grids layout.  I am using the command:

WebGrid1.SaveTablesStructureToXml(_file)

The structure is saved but when I try to restore the grid's layout the following problems occur:

1. The header styles that I have set is not restored

2. Template fields are not included.

I am restoring the layout in the InitializeLayout event.

 

I'm setting the header style in the RootTable definition:

                                <HeaderStyle BackColor="#2b5584" BorderColor="#2b5584" BorderStyle="Solid" BorderWidth="1px" Cursor="Hand"
                                    Font-Names="Verdana" Font-Size="8pt" ForeColor="White" Font-Bold="true" HorizontalAlign="Center" CustomRules="height:auto">
                                    <BorderSettings>
                                        <Left Color="#2b5584" />
                                        <Top Color="#2b5584" />
                                    </BorderSettings>
                                </HeaderStyle>
How can I make sure that the grid's defintion is used and how to restore templated fields?
thanks
All times are GMT -5. The time now is 7:05 PM.
Previous Next