Click here to Skip to main content
15,899,124 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I create my own class, and inherit from TableView.
C#
public class ABGridView : TableView
{

in this class I save current layout like this
C#
string fileName = @"D:\aa.xml";
this.Grid.SaveLayoutToXml(fileName);

and it's work, but when I'm trying to restore layout it doesn't work.
C#
private void ABGridView_Loaded(object sender, RoutedEventArgs e)
{
            string fileName = @"D:\aa.xml";
            this.Grid.RestoreLayoutFromXml(fileName);
}


So I need your helps friends. I can't understand why it doesn't work...
Thanks ...
Posted
Comments
Member 10678549 25-Jul-14 8:13am    
I find the problem it's connect with Grid column name- columns don't have the 'Name' property set. Can I restore without name, or set names programmatically???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900