gridView sorting

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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
 
Back
Top