Can some one tell me how I can move items up and down in a GridView control? I’ve found a good example here, but I’m using a LINQ data source and I’m not sure how to achieve it this way?
Can anybody help me?
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.
The GridView control renders an HTML table, so I would suggest the best way to manipulate that data would be client side using jQuery. That way you’re not reloading the page, simply manipulating the DOM.
Take a look at this answer for an example:
How to move table row in jQuery?
This is of course assuming you’re talking about just the way the data is represented in the browser, and not editing the database fields.