how can i put TD html tag in node of treeview.

Jun 20 2006 1:35 AM
Hello

I just want to put TD for each node in Treeview when i dynamic bind my items in treeview node

my code is

private void BuildTree(ref System.Web.UI.WebControls.TreeNode treeNode)

{

SqlDScategory_tree.FilterExpression = "[CATEGORY_ID_PARENT] = 0";

IEnumerable ieTreeNode = SqlDScategory_tree.Select(new DataSourceSelectArguments());

IEnumerator ieNodes = ieTreeNode.GetEnumerator();

while (ieNodes.MoveNext())

{

System.Data.DataRowView Record = (System.Data.DataRowView)ieNodes.Current;

TreeNode tnNew = new TreeNode(Record["Category_Name"].ToString(), Record["Category_ID"].ToString());

treeNode.ChildNodes.Add(tnNew);        /*-> i want to bind node with TD TAG around here how can i do/*

BuildRecrusNodes(Record["Category_ID"].ToString(), ref tnNew);

}

}