public void BindTree() { ProductManager manager = new ProductManager(this); DataTable table = manager.GetProductPartsByCompany((int)Company.MatrixId).Sort("ParentId").ToDataTable(); RadTreeView1.DataSource = table; RadTreeView1.DataBind(); lblDelete.Visible = RadTreeView1.Nodes.Count > 0; btnDelete.Visible = RadTreeView1.Nodes.Count > 0; }