how to find a node by if there are duplicate nodes

200 Views Asked by At

in Devexpress Treelist. i have duplicate data but it doesn't work well...

For example

  1. List
    • im a student
    • im a nurse
    • we are friends
    • we are the world
    • these are not my money

node that i want

  |  A  |  B  |  C  |  D  |  E  |
  ├───im
  │   └───a
  │       └───stuent
  │       └───nurse
  ├───we
  │   └───are
  │       └───friends
  │       └───the
  │           └───world
  │               └───0409

  ├───these
  │   └───are
  │       └───not
  │           └───my
  │               └───money

but my node is like this

my node

  |  A  |  B  |  C  |  D  |  E  |
  ├───im
  │   └───a
  │       └───stuent
  │       └───nurse
  ├───we
  │   └───are
  │       └───friends
  │       └───the
  │           └───world
  │               └───0409
  │       └───not
  │           └───my
  │               └───money    
  ├───these

there is duplicate word "are" so when using FindNodeByFieldValue("B", "are") every "are" words append under "we" not "these"

here is my code

treelist.AppendNode(new object[] { null, list[i].mean},
                                treelist.FindNodeByFieldValue("columnA", list[i].word));
0

There are 0 best solutions below