GridView Sorting question

G

Guest

Maybe I'm missing something, but in the Sorting event of the Gridview, the
GridViewSortEventArgs.SortDirection is always Ascending. I'm not sure why?
 
W

Winista

I found the similar behavior and put in the article at following link..

http://www.netomatix.com/development/GridViewSorting.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.
 
Joined
Feb 8, 2010
Messages
1
Reaction score
0
Simple Function to get Sort Direction

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top