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. Visual Basic
  4. Clear DataGrid sorting

Clear DataGrid sorting

Scheduled Pinned Locked Moved Visual Basic
csharpalgorithms
6 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.
  • M Offline
    M Offline
    Mohammad Al Hoss
    wrote on last edited by
    #1

    Hi, i have a datagrid with sorting is enabled what i want is after i sort the data to be able to return it to it's default state without sorting. I am using vb.net 2003 windows application. thanks

    Mohammad Al Hoss

    A 1 Reply Last reply
    0
    • M Mohammad Al Hoss

      Hi, i have a datagrid with sorting is enabled what i want is after i sort the data to be able to return it to it's default state without sorting. I am using vb.net 2003 windows application. thanks

      Mohammad Al Hoss

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      set the sort = "" should do it - or it might be nohing rather than an empty string Hope this helps

      Bob Ashfield Consultants Ltd

      M 1 Reply Last reply
      0
      • A Ashfield

        set the sort = "" should do it - or it might be nohing rather than an empty string Hope this helps

        Bob Ashfield Consultants Ltd

        M Offline
        M Offline
        Mohammad Al Hoss
        wrote on last edited by
        #3

        can u please give me a code sample

        Mohammad Al Hoss

        A 1 Reply Last reply
        0
        • M Mohammad Al Hoss

          can u please give me a code sample

          Mohammad Al Hoss

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          Sorry, I was a bit misleading. You need to set the sort on your datasource, not the grid itself. This may help http://www.dotnetspider.com/forum/ViewForum.aspx?ForumId=4973[^]

          Bob Ashfield Consultants Ltd

          M 1 Reply Last reply
          0
          • A Ashfield

            Sorry, I was a bit misleading. You need to set the sort on your datasource, not the grid itself. This may help http://www.dotnetspider.com/forum/ViewForum.aspx?ForumId=4973[^]

            Bob Ashfield Consultants Ltd

            M Offline
            M Offline
            Mohammad Al Hoss
            wrote on last edited by
            #5

            Thanks for your help

            Mohammad Al Hoss

            A 1 Reply Last reply
            0
            • M Mohammad Al Hoss

              Thanks for your help

              Mohammad Al Hoss

              A Offline
              A Offline
              Ashfield
              wrote on last edited by
              #6

              Thats OK, sorry I confused you earlier.

              Bob Ashfield Consultants Ltd

              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