Sorting is very much needed while working with Gridview. We can sort data using code in code behind file and also using Jquery.
In this article I will use jquery TableSorter plugin to sort data in gridview. It is very easy to implement.
Create a table:
Click on Image to Enlarge View
Now add a simple webform in your application. Add following jquery CDN and Jquery code to head section of HTML markup.