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. How can I do multi column sort dataset table?

How can I do multi column sort dataset table?

Scheduled Pinned Locked Moved ASP.NET
questionalgorithms
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.
  • D Offline
    D Offline
    Dong Kim
    wrote on last edited by
    #1

    I use a dataset as a temp. table. This dataset is created during running time. After input all the data, I need to sort dataset table. How can I do multi-column sorting on dataset table? Can I use 'Select ... Order By ' on dataset table? Please let me know. Thanks

    E L 2 Replies Last reply
    0
    • D Dong Kim

      I use a dataset as a temp. table. This dataset is created during running time. After input all the data, I need to sort dataset table. How can I do multi-column sorting on dataset table? Can I use 'Select ... Order By ' on dataset table? Please let me know. Thanks

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      I think you can do order by, and then put the order of the columns you wanted ordered i.e order by person_id, name something like that, hope it makes sense!

      1 Reply Last reply
      0
      • D Dong Kim

        I use a dataset as a temp. table. This dataset is created during running time. After input all the data, I need to sort dataset table. How can I do multi-column sorting on dataset table? Can I use 'Select ... Order By ' on dataset table? Please let me know. Thanks

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #3

        Dong Kim wrote:

        Can I use 'Select ... Order By ' on dataset table? Please let me know. Thanks

        You might not be able to sort a DataSet since it is designed to house multiple tables and relationships. However you can sort a DataView[^] which can be obtained from a DataTable of the DataSet.

        led mike

        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