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
285
ultraTree sorting
posted

I have an UltraTree bound to a datatable, which has multible columns, but I'm displaying only one.

I tried to set the sorting this way but it is not working

 

ultraTree.Nodes.ColumnSetResolved.Columns[

DataAccessDefs.GroupAccountSortID].SortType = SortType.Ascending;

while DataAccessDefs.GroupAccountSortID is not displayed on the tree.

how can I set the sorting on a bound ultraTree using a column different than the displayed one

also, I would like as soon as I make a change to a row of the datatable, I would like the change to show on the tree, how can I do that?

 

 

Parents
  • 469350
    Suggested Answer
    Offline posted

    benbak said:

    I have an UltraTree bound to a datatable, which has multible columns, but I'm displaying only one.

    I tried to set the sorting this way but it is not working

     

    ultraTree.Nodes.ColumnSetResolved.Columns[

    DataAccessDefs.GroupAccountSortID].SortType =

    SortType.Ascending;

    while DataAccessDefs.GroupAccountSortID is not displayed on the tree.

    how can I set the sorting on a bound ultraTree using a column different than the displayed one

    I tested this out and it worked fine for me. I am attaching my test project here so you can see if it works for you.

    benbak said:
    I would like as soon as I make a change to a row of the datatable, I would like the change to show on the tree, how can I do that?

    You can call the RefreshSort method on the tree to update the sorting.

     

    WindowsFormsApplication23.zip
Reply Children