gridView sorting

G

Guest

hey all,
how do i get the sort value that the gridview is currently sorted on? in the
code-behind that is.

thanks,
rodchar
 
A

Alvin Bruney [MVP]

If the sort is client-side you are out of luck. If the sort is thru a post
back, handle the sort event and cast the sender argument to retrieve the
column that caused the sort.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
 
G

Guest

thank you.

Alvin Bruney said:
If the sort is client-side you are out of luck. If the sort is thru a post
back, handle the sort event and cast the sender argument to retrieve the
column that caused the sort.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------


rodchar said:
hey all,
how do i get the sort value that the gridview is currently sorted on? in
the
code-behind that is.

thanks,
rodchar
 

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,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top