Hi Guys,
how to bind multiple images to tree node.
i can bind one image using IMAGE URL property... ..i need implement edit,save,delete images to tree view parent and child nodes.
if (ds.Tables[0].Rows.Count > 0)
{
TreeView1.Nodes.Clear();
foreach (DataRow masterRow in ds.Tables[0].Rows)
{
TreeNode masterNode = new TreeNode((string)masterRow["ParentName"], Convert.ToString(masterRow["ParentId"]), "~/Images/xxx.bmp");
TreeView1.Nodes.Add(masterNode);
foreach (DataRow childRow in masterRow.GetChildRows("Children"))
{
TreeNode childNode = new TreeNode((string)childRow["ChildName"], Convert.ToString(childRow["ParentId"]));
childNode.ImageUrl = "~/Images/yyy.bmp";
masterNode.ChildNodes.Add(childNode);
}
}
}
How to bind multiple images to tree node.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

CrishRank #1,487 · 1.1K reputationPosted Dec 13, 2010, 12:27 AM EST
I have same problem. thanks for code now it will help me to solve the issue of treeview.
Suthish NairRank #92 · 22.8K reputationPosted Dec 13, 2010, 7:33 AM EST
Is this query got resolved?