Home > Net >  Help DevExpress TreeList node order problem.
Help DevExpress TreeList node order problem.

Time:03-17

DevExpress TreeList control based on id and parentId to generate the father-son relationship, but it will be a global effect, for example:
+ node0: id=family, parentId=null
: id=+ node1 ye, parentId=family
+ 2: id=dad, grandfather parentId=
- node3: id=son, parentId=dad
+ node4: id=dad, parentId=family
- node5: id=son, parentId=father (but if you want to join node4 group node, it will be automatically added to the 2 above, below)
Excuse me, how can not automatically associated to the 2?

CodePudding user response:

refer to the original poster csdn_shb response:
DevExpress TreeList control based on id and parentId to generate the father-son relationship, but it will be a global effect, for example:
+ node0: id=family, parentId=null
: id=+ node1 ye, parentId=family
+ 2: id=dad, grandfather parentId=
- node3: id=son, parentId=dad
+ node4: id=dad, parentId=family
- node5: id=son, parentId=father (but if you want to join node4 group node, it will be automatically added to the 2 above, below)
Excuse me, how can not automatically associated to the 2?


Id_value value is uniqueness, how do you think of its parent, is not a dad? Two sons, one dad, maybe, a family of two sons, there is different dad, and the same old man?

CodePudding user response:

The good explanation, you take it as a living family rather than a logical problem is well understood, such as node4 to form a new family and don't live with node1, requires a separate,

CodePudding user response:

This is the look of the hope set up

CodePudding user response:

The
reference 3 floor csdn_shb response:
this is the appearance of hope was founded


If there will be a duplicate values id_value, not suitable for TreeList, use the TreeView, through the hierarchy Level, load to traverse the DataSource,
  •  Tags:  
  • C#
  • Related