Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
380
Preserving Tree Order while Adding Items
posted

Hi,

       I am iterating through a collection and adding nodes under a chosen Parent node. I am facing an ordering issue. The Collection has items in the order Item1, Item2, Item3. When I iterate through the collection and use destinationNode.Nodes.Add(Item), the items are added and displayed in the reverse order as Item3, Item2, Item1 under destination Node. How can I add it to tree Control and preserve the order in which the Items are loaded?.

Parents
  • 69832
    Verified Answer
    Offline posted

    Unless I misunderstood this, it sounds like the Override.SortType property is set to 'Descending'; you can suppress sorting by setting it to 'None'.

Reply Children
No Data