foreach (DataRow rowAuthor in ds.Tables["Continents"].Ro
{
nodeAuthor = new TreeNode();
nodeAuthor.CheckBox = true; ---> Assign A CHECK BOX HERE
nodeAuthor.ImageUrl = "images/root.gif";
nodeAuthor.Text = rowAuthor["Continent"].ToS
TreeView1.Nodes.Add(nodeAu
foreach (DataRow childrow in rowAuthor.GetChildRows("Au
{
nodeTitle = new TreeNode(); //NOT A CHECK BOX
nodeTitle.Text = childrow["Country"].ToStri
nodeAuthor.Nodes.Add(nodeT
Main Topics
Browse All Topics





by: TonylmillerPosted on 2003-09-19 at 06:00:51ID: 9393120
Just looking at it quickly, it looks to me like the checkbox property only applies to the entire TreeView control, and not to the nodes. I hope someone proves me wrong for your sake!
Tony