473,499 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ascending & Descending sort in datagrid

How do you make a sort work in ascending & descending order on the column in
a datagrid.

I have it now where it'll return the numbers from lowest to highest.

SC

Nov 18 '05 #1
2 2158
"Steve Chatham" <me@privacy.net> wrote in
news:ut*************@TK2MSFTNGP12.phx.gbl:
How do you make a sort work in ascending & descending order on the
column in a datagrid.

I have it now where it'll return the numbers from lowest to highest.


You need to define a sort formula. I dont rememember off hand how to do this,
but if you take a quick look in the docs for it you'll find it quickly with
an exmaple to boot.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Nov 18 '05 #2
Steve
This is a great article on how to customize the asp.net datagrid

http://www.msdn.microsoft.com/msdnma...ng/default.asp

Suresh

----- Steve Chatham wrote: ----

How do you make a sort work in ascending & descending order on the column i
a datagrid

I have it now where it'll return the numbers from lowest to highest

S


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4077
by: renster | last post by:
I have been looking at implementing the following but with a difference. http://forums.devshed.com/t47653/s.html This example uses a link which works with some code shown on the page. I have...
1
5474
by: Seansan | last post by:
Hi there, I am trying to sort an array hash on values. I pass a FORM tag and resolve it to the array position to sort on. (see code below). Is there an easy way to sort ascending or descending...
1
3473
by: AwanJohnie | last post by:
I have an XML doc and successfully transformed into a table using XSL. The Challenge is how to sort the information by columns. I am writting diffrent XSL for the diffrent sorts (i.e per column)...
0
1237
by: Alex | last post by:
I found some good information On "Ascending and Descending Sorting of Columns in an ASP.NET DataGrid..." at this site http://www.dedicatedsolutions.co.uk/DesktopDefault.aspx?tabid=62 It is worth...
2
3085
by: Joe | last post by:
Hi, I have an asp.net script that connects to MS Access database and displays data in a table. For some reason I am do not know how to display data say in ascending order of column1. I have...
1
5738
by: Mark | last post by:
Rather than have only one column sorted in a single direction in a listview. I would like to be able to sort on any column in alternating directions (ascending,descending) eg. First column click...
1
1768
by: Richard | last post by:
The obvious way to do it is ListView1.Sorting = SortOrder.Ascending 'or SortOrder.Descending But, I've made my own IComparer, cause it shall sort in a different way, and then the above...
11
18257
by: dwelden | last post by:
I have successfully used the sort lambda construct described in http://mail.python.org/pipermail/python-list/2006-April/377443.html. However, how do I take it one step further such that some values...
6
3703
by: reon | last post by:
Here is my source code.... And any one pls help me how can we find the output integers sort by ascending and find there average... #include<iostream.h> #include<conio.h> void main() { int...
0
7131
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4600
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3099
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
297
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.