I see there is a complicated answer for this question for .NET 2.0 but this is 4.5. Is there any way now to give specific child nodes in treeview a checkbox? I want there to be folder icons for the parent nodes with a + to expand, and underneath, I need items to check. One would think this is so common nowadays that this would be built right in as an option in 4.5.
I have a pre-populated TreeView and I'm just adding to existing parent nodes with the following inside a loop, I want these nodes to have checkboxes:
foreach (string[] group in grpList)
{
TreeNode[] list = treeView1.Nodes.Find(group[1], true);
if (list.Length != 0)
{
list[0].Nodes.Add(group[0]);
}
}
Aucun commentaire:
Enregistrer un commentaire