.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Sorting Based on click on the Header column in a GridView

Posted By: Deco     Posted Date: September 20, 2010    Points:2   Category :C#
I have a GridView in which i have linked button for the Header column, Can anyone please tell me how to sort the gridview, when we select the header in the gridview?

Responses
Author: Asha.MP             
Posted Date: September 21, 2010     Points: 5   

Hi..

Just Add sortExpression property for each header as the header name and set the Allowsorting property true for the gridview.


Thanks and Regards,
Asha.mp


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend