Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. GridView Sorting

GridView Sorting

Scheduled Pinned Locked Moved ASP.NET
cssalgorithmsquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jay_se
    wrote on last edited by
    #1

    Hi, I have created my grid view using the asp:TemplateField for all the columns. Now I wish to Sort the corresponding Column wise, when I click on the respective Column Header (Its LinkButton Control). How efficiently I can able to do this? Suggest me the idea behind this.

    Regards, Jay :)

    M 1 Reply Last reply
    0
    • J Jay_se

      Hi, I have created my grid view using the asp:TemplateField for all the columns. Now I wish to Sort the corresponding Column wise, when I click on the respective Column Header (Its LinkButton Control). How efficiently I can able to do this? Suggest me the idea behind this.

      Regards, Jay :)

      M Offline
      M Offline
      Mayank Parmar
      wrote on last edited by
      #2

      You have to give SortExpression for each template. SortExpression="USER_MASTER.USER_LEVEL_ID desc" And on event sorting you have to use it in sorting event like : e.SortExpression

      Regards, Mayank Parmar Senior Software Engineer Amba Tech Gandhinagar, India

      G 1 Reply Last reply
      0
      • M Mayank Parmar

        You have to give SortExpression for each template. SortExpression="USER_MASTER.USER_LEVEL_ID desc" And on event sorting you have to use it in sorting event like : e.SortExpression

        Regards, Mayank Parmar Senior Software Engineer Amba Tech Gandhinagar, India

        G Offline
        G Offline
        gautamamit8
        wrote on last edited by
        #3

        hi mayank could u give me that sorting event full code Thanks in Advance

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups