The following tasks show you how to save your C1TreeView control as an .xml file and then load it into your project using the designer.
Save the C1TreeView as XML
To save your tree as an XML file using the designer:
Load an Existing XML C1TreeView into your Project
To load the C1TreeView control you saved as an .xml file into your project:
Load an Existing XML C1TreeView in Code
To load the C1TreeView control you saved as an .xml file into your project:
To write the code in Visual Basic:
Visual Basic |
Copy Code
|
---|---|
C1TreeView1.LoadLayout("c:\\Visual Studio 2005\\WebSites\\LoadLayoutEX\\App_Data\\C1TreeViewControl.xml") |
To write the code in C#:
C# |
Copy Code
|
---|---|
C1TreeView1.LoadLayout("c:\\Visual Studio 2005\\WebSites\\LoadLayoutEX\\App_Data\\C1TreeViewControl.xml"); |