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. General Programming
  3. C#
  4. Data Table - Sort [urgent]

Data Table - Sort [urgent]

Scheduled Pinned Locked Moved C#
csstutorial
3 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.
  • S Offline
    S Offline
    SysJey
    wrote on last edited by
    #1

    How to sort contents of datatable using one or more columns and assign the sorted contents to Data Grid. Jey

    M 1 Reply Last reply
    0
    • S SysJey

      How to sort contents of datatable using one or more columns and assign the sorted contents to Data Grid. Jey

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      You need to use DataView[^] class to sort the contents of a DataTable. And then use the DataView as the DataSource to your DataGrid. Michael CP Blog [^] Development Blog [^] -- modified at 6:57 Saturday 24th June, 2006

      S 1 Reply Last reply
      0
      • M Michael P Butler

        You need to use DataView[^] class to sort the contents of a DataTable. And then use the DataView as the DataSource to your DataGrid. Michael CP Blog [^] Development Blog [^] -- modified at 6:57 Saturday 24th June, 2006

        S Offline
        S Offline
        SysJey
        wrote on last edited by
        #3

        Thanks Michel, It's working. Can i assign the sorted content to the same data table. Jey

        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