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
4032
RefreshSort does not work
posted

I use UltraTree 2009.1 and Tree in ViewStyle=Standard

The tree is bound to a datatable ans all nodes are shown fine. In some cases  I need to resort my tree. For this reason I have a sort comparer class setting up like this:

 

 

 

 

this.OrgTree.Override.Sort = SortType.Default;

 

 

this.OrgTree.Override.SortComparer = new MyTreeComparer();

 

 

this.OrgTree.RefreshSort( node.Nodes, false);

Never is sorted and the Compare member of my comparer class is never be called. Thanks for any help.

Markus

 

Parents
No Data
Reply
  • 69832
    Offline posted

    Try setting the SortComparer property on the Column instead. If you set the ColumnSet's NodeTextColumn property, use that column, otherwise it will just be the first column in the ColumnSet.

Children