|
protected void btnDelSub_Click(object sender, EventArgs e)
{
string strParentID = this.tvwType.SelectedNode.Value.ToString().Trim();
string strParent = this.tvwType.SelectedNode.Value.ToString().Trim() + ",";
this.tvwType.SelectedNode.ChildNodes.Clear();
}
这样只能删除选中节点以下的,但是不能删除本身的节点,
请问怎么删除TreeView中选中节点? |
|