Sort Gridview by columns

  • Thread starter Thread starter keithb
  • Start date Start date
K

keithb

I have a working ASP.NET 2.0 application that uses a GridView control. How
can I enable the feature that allows a user to click on a column heading and
sort the contents by the information in that column?

Thanks,

Keith
 
Hi Keith,

Your problem is probably more complex than this, but for starters... When
you set the GridView's allowsorting property to True, does sorting come on?

<asp:gridview id="GridView1" runat="server" allowsorting="True">

Could you show us the code that isn't working?

Ken
Microsoft MVP [ASP.NET]
 

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

Back
Top