Time remaining:
sort (windows form)

Programming
Tutor: None Selected Time limit: 0 Hours

i want to insert an array in the text box and then choose the sort type , also choose if its asc or desc .. then click on sort 

when I click on sort it will show me a window has the first operation happens while sorting ,, llike the first two items in the array sorted .. then i click next to see the second two items which are just sorted .. 

I want the code of this please !! in windows form

Nov 20th, 2013

//C#
private void listView1_ColumnClick(object sender,
                           System.Windows.Forms.ColumnClickEventArgs e)
{
    // Determine whether the column is the same as the last column clicked.
    if (e.Column != sortColumn)
    {
        // Set the sort column to the new column.
        sortColumn = e.Column;
        // Set the sort order to ascending by default.
        listView1.Sorting = SortOrder.Ascending;
    }
    else
    {
        // Determine what the last sort order was and change it.
        if (listView1.Sorting == SortOrder.Ascending)
            listView1.Sorting = SortOrder.Descending;
        else
            listView1.Sorting = SortOrder.Ascending;
    }

    // Call the sort method to manually sort.
    listView1.Sort();
    // Set the ListViewItemSorter property to a new ListViewItemComparer
    // object.
    this.listView1.ListViewItemSorter = new ListViewItemComparer(e.Column,
                                                      listView1.Sorting);
}
this is code dear :)

Nov 20th, 2013

thaaanks  

BUt I have problem in connect between controls, Idon't know how to connect between them 
for example how to make it like : when I choose quick sort and ASC and click ok button it will do the operation of what I chose , I don't know how to connect them in code .. got it ? any help please !!

Nov 23rd, 2013

welcome anyway this is your second question i will provide you solution for connection if you pay the pledge for this question.

Nov 23rd, 2013

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Nov 20th, 2013
...
Nov 20th, 2013
Mar 25th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer