Of course, there must be a third-party TreeView control:) USING Microsoft.Web .ui .webControls; Private Void InitTree (TreenodEcollection NDS, String MailFrom, long time) {// Create a data attempt to DataView DV = new dataview (); // Create a new node TREENODE TEMPND = new Treenode (); // Trial to the data DV.TABLE = Dataset.Tables ["Tree"]; // Test filter //dv.rowfilter = "MailFrom = '" mailfrom " '"; Al.Add (Mailfrom);
// Turn off DataSet DataSet.clear (); Dataset.dispose (); myconnection.close (); myconnection.dispose ();
Foreach (DATAROWVIEW DRV IN DV) {// Get Node Information Tempnd = New Treenode (); // Get Node ID Tempnd.id = DRV ["Mailsrc"]. Tostring (); // Get Node's Text TEMPND.TEXT = DRV ["mailsrc"]. TOSTRING (); // Get capture time string tempnddt = DRV ["Capturetime"]. TOSTRING (); // Transition time into long to compare long Temp = long.parse TEMPNDDT);