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

Contributor Icon Contributed by shamanstears Date Icon January 16, 2007  
Tag Icon Tagged: 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.

Previous recipe | Next recipe |
 

 
close Reblog this comment
blog comments powered by Disqus