How can I implement bi-directional sorting in the GridView, with the condition that my GridView is not bind to SQL but to datatable-column-row & dataset.
Thanks!
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.
Put your Datatable in the Viewstate when you bind it for the first time.
Here is the code, that allows you to do this…
For details, please look at this MSDN article GridView.Sorting