private void _treeView_ColumnClicked(object sender, TreeColumnEventArgs e) { TreeColumn clicked = e.Column; if (clicked.SortOrder == SortOrder.Ascending) clicked.SortOrder = SortOrder.Descending; else clicked.SortOrder = SortOrder.Ascending; (_treeView.Model as SortedTreeModel).Comparer = new FolderItemSorter(clicked.Header, clicked.SortOrder); }
////////////////////////////////////////////////////////////////////////// private void OnColumnResized(object sender, TreeColumnEventArgs e) { FixLastColumnWidth(); }
private void treeProcesses_ColumnClicked(object sender, TreeColumnEventArgs e) { if (e.Column.SortOrder == SortOrder.None) { e.Column.SortOrder = SortOrder.Descending; } else if (e.Column.SortOrder == SortOrder.Descending) { e.Column.SortOrder = SortOrder.Ascending; } else { e.Column.SortOrder = SortOrder.None; } _treeModel.CallStructureChanged(new TreePathEventArgs(new TreePath())); treeProcesses.Root.ExpandAll(); this.RefreshItems(); }
private void _treeView_ColumnReordered(object sender, TreeColumnEventArgs e) { }
private void ColumnClickedHandler(object sender, TreeColumnEventArgs e) { var aColumn = e.Column; InvertSortOrderOf(aColumn); Sort(aColumn); }
private void _treeView_ColumnWidthChanged(object sender, TreeColumnEventArgs e) { }
private void treeView1_ColumnClicked(object sender, TreeColumnEventArgs e) { if (e.Column.SortOrder != SortOrder.Ascending) { e.Column.SortOrder = SortOrder.Ascending; } else { e.Column.SortOrder = SortOrder.Descending; } SortList(); }