Microsoft Expression Web: Allow Users to Sort Data Displayed in Grid

Posted January 16, 2007 by Rob Rogers in Web application programming

In some situations, it works best to allow users to be able to sort the displayed data as they need to. Not everyone needs the data sorted in the same manner. You can give your users the choice as to how they want the data displayed in the GridView control by doing this…

1. Select the GridView control that contains the data.

2. Click the arrow button on the control. The Common GridView Tasks will appear.

3. Check the Enable Sorting checkbox.

4. Save the page.

Now, if you view the page you will see that the header on each of your columns has now become a hyperlink. Clicking on these hyperlinks will sort the columns in ascending and descending order.


About Rob Rogers

Once a prolific author here on Tech-Recipes, Rob has moved on to greener pastures.
View more articles by Rob Rogers

The Conversation

Follow the reactions below and share your own thoughts.

Leave a Reply