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?
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
DataAccessDefs.GroupAccountSortID].SortType =
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.
Hi Mike,
Thank you for your reply. I tried both solutions mentioned above, but they didn't work for me.
is that because I'm building a hierarchy in the tree. the way I'm doing it is through column relations of dataset.