Bind data in dataset to treeview like we bind data to gridview in c#

170 Views Asked by At

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."

0

There are 0 best solutions below