Please help me with the solution.
treeView.DataTextField = "Text";
treeView.DataFieldID = "ID";
treeView.DataFieldParentID = "ParentID";
treeView.DataSource = siteData;
treeView.DataBind();
this give me error - "System.ArgumentException: 'This constraint cannot be enabled as not all values have corresponding parent values."