List not only lets you save the layout but also lets you load the layout from XML files. Loading the saved layouts also helps in reducing your time and effort in re-creating the same structure.
To load list layout from an XML document, you can simply call LoadLayout method of the C1List class and parse name of the XML document as a parameter.
Use the following code to import list layout from XML file.
C# |
Copy Code
|
---|---|
//import layout from c1list.xml file if (File.Exists("c1list.xml")) { c1List1.LoadLayout("c1list.xml"); } |