we are in main development phase. i strucked in middle of the development as i am not able bind the treeview when one child has multiple parents.
But i wanna to achieve this in any way as it is our main concept of development. Please find the below structure.
DataTable data = new DataTable();
data.Columns.Add(
"ParentID");
data.Columns.Add(
"ChildID");
data.Columns.Add(
"Text");
data.Rows.Add(
null, "1", "Market 1");
data.Rows.Add(
null, "2", "Market 2");
data.Rows.Add(
"1", "1", "1_Client");
data.Rows.Add(
"1", "2", "2_Client");
data.Rows.Add(
"2", "1", "1_Client");
data.Rows.Add(
"2", "4", "4_Client");
data.Rows.Add(
"2", "5", "5_Client");
radTreeClientMarket.DataFieldID =
"ChildID";
radTreeClientMarket.DataFieldParentID =
"ParentID";
radTreeClientMarket.DataTextField =
"Text";
radTreeClientMarket.DataSource = data;
radTreeClientMarket.DataBind();
here , child "1_client" is having two parents and my tree view also should be in the way around.
Please reply me as soon as possible as all stopped in this.
Thanks,
Priya