Sort Gridview by columns

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
 
K

Ken Cox [Microsoft MVP]

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top