I have a GridView and ObjectDataSource set up to do custom paging and everything was fine. Now the client wants a ‘show all’ button. In the event handler for this button, what can I do to achieve this?
Thanks for your time.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want show all records on a button click, then its better to set
AllowPaging = falseon the button’s Click handler. It will simply disable the paging feature and bind all the records to the gridview: