Sort Gridview by columns

Discussion in 'ASP .Net' started by keithb, Aug 22, 2006.

  1. keithb

    keithb Guest

    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
     
    keithb, Aug 22, 2006
    #1
    1. Advertising

  2. 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]

    "keithb" <> wrote in message
    news:...
    >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
    >
     
    Ken Cox [Microsoft MVP], Aug 23, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. helpful sql
    Replies:
    0
    Views:
    820
    helpful sql
    May 19, 2005
  2. Replies:
    5
    Views:
    601
  3. Jacksm
    Replies:
    2
    Views:
    855
    Paul Chalekian
    Nov 21, 2006
  4. Vinki

    template columns and bound columns in gridview

    Vinki, Apr 25, 2007, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    876
    Vinki
    Apr 25, 2007
  5. Navin
    Replies:
    1
    Views:
    706
    Ken Schaefer
    Sep 9, 2003
Loading...

Share This Page