There is a parent-child relationship between nodes, and the relation works with values specified in DataFieldID
and DataFieldParentID
members. So you have to specify a field with unique values for DataFieldID
member.
Suppose you have two nodes with ID (main_code
) of 1
(you already have), and there is another node with parent ID (father_code
) of 1
. So which of the two nodes are the parent of this node?