Unless I am very mistaken, the GridView itself does not provide
sorting capabilities. On the contrary, it is very adept at taking
advantage of the Datasource's sorting/paging capabilities. Setting the
AllowSorting property will automatically enable sorting only if your
Datasource also provides this capability. Since you are using a
Dataset (instead of a Datasource control), you need to provide custom
sorting logic in the Sorting eventhandler of the GridView.

Reply via email to