Bidirectional Sorting on Any Column in DataGrid
page 1 of 7
Published: 02 Dec 2003
Unedited - Community Contributed
Abstract
Enable users to sort data displayed in datagrid using different VB properties. This article shows both the sortexpression and the dynamic attributes property of datagrid and dataview class.
by Pani Baruri & Abhijit Mandrekar
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 22977/ 79

Introduction

The purpose of this article is to sort data displayed in datagrid in ascending or descending direction and reverses the direction of the sort automatically each time user clicks the column in datagrid. This article is divided into two parts. The first part uses sortexpression property of the column for sorting and the latter part uses dynamic attributes property of datagrid and dataview class for sorting.

 

Advantages

  • This kind of sorting can be applied to any number of desired columns you want data to be sorted.
  • It reverses the sort direction each time automatically for each column.

 


View Entire Article

User Comments

Title: Bidirectional Sorting on Any Column in DataGrid   
Name: brian
Date: 2007-08-08 10:39:14 PM
Comment:
thanks a lot.It really very helpful
thumb up

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2017 ASPAlliance.com  |  Page Processed at 2017-11-22 1:21:47 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search