62,041
社区成员
发帖
与我相关
我的任务
分享
public void GetValue(TreeNodeCollection Nds,string id)
{
if (Nds.Count > 0)
{
for (int i = 0; i < Nds.Count; i++)
{
if (Nds[i].Value == id)
{
Nds[i].Selected = true;
}
GetValue(Nds[i].ChildNodes,id);
}
}
}