I want to sort the multi column tree view items based on column selection. Please suggest me how to do it.
The following is the code, which is sorting always with 0th column index. Hence i want sort based on column header selection (i.e. either 0,1,...).
if (treeNodesCollections[nodeIndex].HasNodes && treeNodesCollections[nodeIndex].Expanded)
SortPatternExplorer(treeNodesCollections[nodeIndex], _treeViewSortOrder, _sortColumnIdx);
private void SortPatternExplorer(TreeNodeAdv treeNode, SortOrder order, int columnIdx)
treeNode.SortOrder = order;
In this above SortPatternExplorer taking sorting order but order applies based on 0th idex. instead of that i want to use the parameter "columnIdx".
Thanks & Regards