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

Loads data from a database table. See HierarchyData class description for the table format.

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

public string LoadFromDatabase(
	DbConnection Connection,
	string Query
)
public String LoadFromDatabase(
	DbConnection Connection,
	String Query
)

Parameters

Connection
Type: OnlineSystem.Data.Common DbConnection
The database connection object
Query
Type: OnlineSystem String
The query string that will fetch the required columns in the order specified in the table format

Return Value

Returns blank if succeeded, error message otherwise.
See Also