Screenshot: You need to have Microsoft.Web.ui.WebControls.dll support.
Combotree1.treeWidth = 200; // Combotree width, intcombotree1.datasource = DT; // Data Source, DataTableCombotree1.DataTextColumn = DT.COLUMNS ["name"]. TOSTRING (); // Node name in the data source Stringcombotree1.DataValueColumn = DT.COLUMNS ["ID"]. ToString (); // Node ID In the data source, stringcombotree1.dataParentColumn = dt.columns ["parentID"]. Tostring (); // node correspondence The column of the parent node ID in the data source, stringcombotree1.defaultParentValue = "0"; // Default Parent Node ID, stringcombotree1.displayName = "test"; // tree structure display name, String
Combotree1.selectValue = "name14"; // Default node name, stringcombotree1.selectid = "14"; // Default node ID, STRING
Please contact tinya.du@163.com if you need source code (2006-9-11)