troubleshooting Question

ASP.NET 2.0 - Sorting a GridView control bound to a List<T> object

Avatar of josephdaviskcrm
josephdaviskcrmFlag for United States of America asked on
1 Comment1 Solution247 ViewsLast Modified:
I've got a gridview that is databound to a List<T> of objects from a custom class that I have defined.  I've got it working fine, but I need a little direction on how to apply sorting to the gridview so that it will sort the data based on a column when you click the header text in that column.

Unfortunately this is an older application written in ASP.NET 2.0, so any solution I use can't utilize .NET 3.5 language constructs.

Any help on this would be great.

Miguel Oz
Senior Software Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2009

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros