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: 3.2.0.0 (3.2)
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[,] sArr1 = new string[,]{
            { "1", "", "TEXT1", "VALUE1", "TOOL_TIP1", "PHOTO1.PNG"            },
            { "2", "1", "Text11", "Value11", "ToolTip11", "Photo11.png"        },
            { "3", "1", "Text12", "Value12", "ToolTip12", "Photo12.png"        }, 
            { "4", "1", "Text13", "Value13", "ToolTip13", "Photo13.png"        }, 
            { "5", "3", "Text121", "Value121", "ToolTip121", "Photo121.png" }, 
            { "6", "3", "Text122", "Value122", "ToolTip122", "Photo122.png" }, 
            { "7", "3", "Text123", "Value123", "ToolTip123", "Photo123.png" }  
            };
hierarchy1.hpcData.LoadFromArray(ref sArr1);
hierarchy1.hpDataTree.ExpandAll( );
hierarchy1.Refresh( );
See Also