HierarchyData LoadFromArray Method (  String   )Chart4.NET - Organization Charting Component (C#/VB.NET/ASP.NET) - Documentation
Onlinewww.Chart4.NET (Documentation) | OnlineSamples Download | Release Notes

Loads data from the given array. See example below for the desired array format.

Namespace: UnifoChart.Hierarchy
Assembly: UnifoChart.Hierarchy (in UnifoChart.Hierarchy.dll) Version: 5.1.0.0 (5.1.0)
Syntax

public string LoadFromArray(
	ref string[][] Array
)
public String LoadFromArray(
	/** @ref */String[][] Array
)

Parameters

Array
Type:   OnlineSystem String   
The array that contains data

Return Value

Returns blank if succeeded, error message otherwise.
Examples

string[][] sArr = new string[][]{
    new string[]{ "1", "", "Text1", "Value1", "ToolTip1", "Photo1.png"            },
    new string[]{ "2", "1", "Text11", "Value11", "ToolTip11", "Photo11.png"        }, 
    new string[]{ "3", "1", "Text12", "Value12", "ToolTip12", "Photo12.png"        }, 
    new string[]{ "4", "1", "Text13", "Value13", "ToolTip13", "Photo13.png"        }, 
    new string[]{ "5", "3", "Text121", "Value121", "ToolTip121", "Photo121.png" }, 
    new string[]{ "6", "3", "Text122", "Value122", "ToolTip122", "Photo122.png" }, 
    new string[]{ "7", "3", "Text123", "Value123", "ToolTip123", "Photo123.png" }  
    };
hierarchy1.hpcData.LoadFromArray( ref sArr );
hierarchy1.hpcData.ExpandAll();
hierarchy1.Refresh( );
See Also