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. Multicolumn sorting

Multicolumn sorting

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netalgorithmstutorial
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
    jinnyb
    wrote on last edited by
    #1

    hey can any one pls tell me how to sort mutiple cloumns in the datagrid control in .asp.net Patel Neelesh A

    M V 2 Replies Last reply
    0
    • J jinnyb

      hey can any one pls tell me how to sort mutiple cloumns in the datagrid control in .asp.net Patel Neelesh A

      M Offline
      M Offline
      Mandar Patankar
      wrote on last edited by
      #2

      I didnt understand the question correctly.I would like to ask why there is need to sort the datagrid.I guess u are using a datatable as Datasource to the grid. so u can sort the datatable before binding it to grid or Do you want the coulumns in datagrid enabled for sorting when the user clicks on them? Mandar Patankar Microsoft Certified professional

      1 Reply Last reply
      0
      • J jinnyb

        hey can any one pls tell me how to sort mutiple cloumns in the datagrid control in .asp.net Patel Neelesh A

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        Patel You need have a SortHandler for the DataGrid to handle all sorting. For the column, you need to specify the SortExpression (DataSource property), which you can use in the EventHandler to do the soting. MSDN Example of 'DataGrid Web Server Control' has an example to this effect. Vasudevan Deepak Kumar Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/

        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