Once you set these properties you will find that the column headers of all the columns for which you specified Sort Expression property appear as clickable link buttons.Clicking on the link buttons raise two events: Just like paging events these events follow pre and post pattern.The Grid View Sort Event Args class has three important properties.
When attached with a Data Source control Grid View performs tasks such as paging, sorting and editing automatically i.e. However, at times you require to bind the Grid View with a Data View or Data Table directly.
We set Page Index property of the Grid View to this new page number and call the Bind Grid() method again.
This will display the corresponding records in the Grid View.
The Sorting event allows you to cancel the operation also.
The Sorting event handler receives an event argument of type Grid View Sort Event Args.In order to implement paging you need to set Allow Paging property of the Grid View control to True. There are two events of Grid View that are related to paging.