BrightIdeasSoftware.ObjectListView.Sort C# (CSharp) Method

Sort() public method

Sort the items in the list view by the values in the given column and by the given order.
If ShowGroups is true, the rows will be grouped by the given column. If AlwaysGroupsByColumn is not null, the rows will be grouped by that column, and the rows within each group will be sorted by the given column.
public Sort ( OLVColumn columnToSort, SortOrder order ) : void
columnToSort OLVColumn The column whose values will be used for the sorting. /// If null, the first column will be used.
order SortOrder The ordering to be used for sorting. If this is None, /// this.Sorting and then SortOrder.Ascending will be used
return void
        public virtual void Sort(OLVColumn columnToSort, SortOrder order)
        {
            if (this.InvokeRequired) {
                this.Invoke((MethodInvoker)delegate { this.Sort(columnToSort, order); });
            } else {
                this.DoSort(columnToSort, order);
                this.PostProcessRows();
            }
        }

Same methods

ObjectListView::Sort ( ) : void
ObjectListView::Sort ( OLVColumn columnToSort ) : void
ObjectListView::Sort ( int columnToSortIndex ) : void
ObjectListView::Sort ( string columnToSortName ) : void
ObjectListView