Basically I’m setting my datasource on my gridview to a datatable that I filled in manually. Is there a way to get the gridview to autopage and sort? When I try to go to another page on the gridview it gives me an exception saying that the paging event is not being caught (meaning I don’t have a method for the event). I have allow paging set to true as well.
Share
you have to implement
OnPageIndexChangingevent for paging ,OnSortingevent for sorting like :and in code behind :
you can refer to this Example