Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > GridView Sorting question

Reply
Thread Tools

GridView Sorting question

 
 
=?Utf-8?B?RGF2ZQ==?=
Guest
Posts: n/a
 
      07-21-2006
Maybe I'm missing something, but in the Sorting event of the Gridview, the
GridViewSortEventArgs.SortDirection is always Ascending. I'm not sure why?
 
Reply With Quote
 
 
 
 
Winista
Guest
Posts: n/a
 
      08-16-2006
I found the similar behavior and put in the article at following link..

http://www.netomatix.com/development...ewSorting.aspx

There is a Sort method on GridView where you specify sort direction and in
response to that methos, GridView control sets the sort direction in the
event argument of sorting event. GidView does not know the direction by
itself nor it seems to keep track of it.

"Dave" <> wrote in message
news8BF3BE3-6905-45D1-BF20-...
> Maybe I'm missing something, but in the Sorting event of the Gridview, the
> GridViewSortEventArgs.SortDirection is always Ascending. I'm not sure
> why?



 
Reply With Quote
 
 
 
 
pawan.nogariya pawan.nogariya is offline
Junior Member
Join Date: Feb 2010
Posts: 1
 
      02-08-2010
However the post is old, but since I have a very simple function to get the current sort direction for a column so I am posting too
You can find it here
getsortdirectionfunction.blogspot.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting list vs sorting vector boltar2003@boltar.world C++ 2 07-06-2010 09:40 AM
Gridview sorting event - Gridview Datasource always Null .. why??? jobs ASP .Net Web Controls 2 10-24-2006 07:08 AM
fired event Sorting which wasn't handled - sorting and SelectedIndexChanged Jason ASP .Net Web Controls 0 10-04-2006 02:19 PM
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 1 05-09-2006 06:48 PM
sorting by multiple criterias (sub-sorting) Tom Kirchner Perl Misc 3 10-11-2003 05:16 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57