The call time is as follows:
/// <Param name = "newTreeView"> tree control name </param>
/// <Param name = "TreeViewName"> function name of the layer </param>
/// <Param name = "TableName"> name of the table in the database </param>
/// <Param name = "ParentNameField"> Field name of the parent node </param>
/// <Param name = "CurrentNameField"> node field name </param>
/// <Param name = "CurrentDataField"> node data </param>
NewTreeInfoBll. InitTreeData (this. treeView1, "system business table", "T_S_SystemTableIndex", "pid000", "name00", "id0000 ");
If you do not understand anything or do not understand anything, please send me an EMAIL. Thank you. I hope you can make progress together.
---------------------------------
TREEINFO. CS = Data Control Layer
Using System;
Using System. Windows. Forms;
Using System. Data;
Using System. Data. SqlClient;
Namespace DAL
{
/// <Summary>
/// TreeInfo
/// All information of the tree-based initial database
/// Joe peak
/// Function: implement initial activation of all trees
/// </Summary>
Public class TreeInfo
{
// Private string PARM_TableName;
/// <Summary>
/// Retrieve all data of a table (the table name is missing)
/// </Summary>
Private string SQL _SELECT_TREE = "SELECT * FROM ";