I have a datatable which returns around 30,000 records. I am displaying these records in an ASP:GridView control. I have a dropdown control in which I want the user to be able to select the number of records to display in the GridView. The default should be All, but it could also have values such as 20, 50, 100 for example. I am not quite sure how to do this.
What if I don't have Paging turned on. Will PageSize still work?
I hardcoded GridView.PageSize = 1 and it still returned all the records.