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. Sorting in Grid View using AJAX

Sorting in Grid View using AJAX

Scheduled Pinned Locked Moved ASP.NET
htmlcssalgorithms
4 Posts 2 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.
  • K Offline
    K Offline
    Kartik Rathi
    wrote on last edited by
    #1

    Hi How can we perform sorting in GridView While using SqlDataSource and AJAX. I m using these and just write in Html **Allow Sorting="True".**But this doesnot work. Can anybody give me code to perform sorting functionality. Thanks in advance. Kartik Rathi

    V 1 Reply Last reply
    0
    • K Kartik Rathi

      Hi How can we perform sorting in GridView While using SqlDataSource and AJAX. I m using these and just write in Html **Allow Sorting="True".**But this doesnot work. Can anybody give me code to perform sorting functionality. Thanks in advance. Kartik Rathi

      V Offline
      V Offline
      vik20
      wrote on last edited by
      #2

      U will also have to give the sortexpression to the bound and template column. Use Atlas framework for using AJAX. Put the GridView inside an updatepanel and that will do the job Here is a post showing how to add atlas control to your toolbox http://vikramlakhotia.com/Post.aspx?postID=8 Hope this helps Vikram Lakhotia

      K 1 Reply Last reply
      0
      • V vik20

        U will also have to give the sortexpression to the bound and template column. Use Atlas framework for using AJAX. Put the GridView inside an updatepanel and that will do the job Here is a post showing how to add atlas control to your toolbox http://vikramlakhotia.com/Post.aspx?postID=8 Hope this helps Vikram Lakhotia

        K Offline
        K Offline
        Kartik Rathi
        wrote on last edited by
        #3

        Still not got solution. Can U explain This. kartik rathi

        V 1 Reply Last reply
        0
        • K Kartik Rathi

          Still not got solution. Can U explain This. kartik rathi

          V Offline
          V Offline
          vik20
          wrote on last edited by
          #4

          Here is a code snippet of the code that works for sorting. Please change the Connection string and the querys. If you are using Atlas for ajax put the full thing inside the . That will do the job. :-O vikram lakhotia

          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