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

Add a datatable to the hierarchy of tables. Return a reference to the added table, so that you can add more child tables.

Namespace: UnifoChart.Hierarchy
Assembly: UnifoChart.Hierarchy (in UnifoChart.Hierarchy.dll) Version: 4.1.0.0 (4.1.0)
Syntax

public HierarchyTable Add(
	string TableName,
	string IdField,
	string ParentIdField,
	string ForeignIdField,
	string TextField,
	string ValueField,
	string WhereCondition,
	string ToolTipField,
	string ImageNameField,
	string UrlField,
	string TagField
)
public HierarchyTable Add(
	String TableName,
	String IdField,
	String ParentIdField,
	String ForeignIdField,
	String TextField,
	String ValueField,
	String WhereCondition,
	String ToolTipField,
	String ImageNameField,
	String UrlField,
	String TagField
)

Parameters

TableName
Type: OnlineSystem String
Name of the table. Name is used for tagging the nodes (if specific tag column is not mentioned) and for refering the tables later.
IdField
Type: OnlineSystem String
Name of the unigue identification column.
ParentIdField
Type: OnlineSystem String
Column that contains values from IdField (If the rows have a parent-child relationship in between; blank otherwise).
ForeignIdField
Type: OnlineSystem String
Column that contains values from parent table's unique ID column. In other words, where rows of this table is a child of (has a connection of) parent table.
TextField
Type: OnlineSystem String
Text to be displayed. Use \n to separate the text into multiple lines. If there are multiple columns of data, separate them with colon(:).
ValueField
Type: OnlineSystem String
Unique name field; to refer and customize individual nodes.
WhereCondition
Type: OnlineSystem String
Any filtering criteria required to enforce on the selected rows; based on column nmaes of the datatable.
ToolTipField
Type: OnlineSystem String
Column name that contains the tooltip of the node.
ImageNameField
Type: OnlineSystem String
Column that contains photo filename/key/index. You have to set PhotoPath and PhotoSpecification.
UrlField
Type: OnlineSystem String
Column that contains url to navigate (for web controls only). See also hpDrillDownMode
TagField
Type: OnlineSystem String
Column that contain individual node tags. Default is the table name. You can refer the nodes later using Tags property.

Return Value

UnifoChart.Hierarchy.HierarchyTable
See Also