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. Filter Dataview

Filter Dataview

Scheduled Pinned Locked Moved C#
question
7 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
    Mazdak
    wrote on last edited by
    #1

    I have a DataView.in some part of my application I I use filter statement to filter it..Then I want to read records in FILTERED dataiview.When I use myDataView.Table.Rows.Count or myDataView.Table.Rows[i][k] it gives me all records not filter ones. Any suggestion? Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
    Wish You Were Here-Pink Floyd-1975

    J 1 Reply Last reply
    0
    • M Mazdak

      I have a DataView.in some part of my application I I use filter statement to filter it..Then I want to read records in FILTERED dataiview.When I use myDataView.Table.Rows.Count or myDataView.Table.Rows[i][k] it gives me all records not filter ones. Any suggestion? Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
      Wish You Were Here-Pink Floyd-1975

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      myDataView.Table refers to the original table, not the filtered data. Just use myDataView[i][k];. James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

      M 1 Reply Last reply
      0
      • J James T Johnson

        myDataView.Table refers to the original table, not the filtered data. Just use myDataView[i][k];. James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

        M Offline
        M Offline
        Mazdak
        wrote on last edited by
        #3

        wowww,I didn't know it is possible,I have to test it now. Thanks:) Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
        Wish You Were Here-Pink Floyd-1975

        J 1 Reply Last reply
        0
        • M Mazdak

          wowww,I didn't know it is possible,I have to test it now. Thanks:) Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
          Wish You Were Here-Pink Floyd-1975

          J Offline
          J Offline
          James T Johnson
          wrote on last edited by
          #4

          Neither did I, this is the second look I've taken at the DataView class and I just noticed it had an indexer on it (so you can use the myDataView[] syntax). James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

          M 1 Reply Last reply
          0
          • J James T Johnson

            Neither did I, this is the second look I've taken at the DataView class and I just noticed it had an indexer on it (so you can use the myDataView[] syntax). James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

            M Offline
            M Offline
            Mazdak
            wrote on last edited by
            #5

            I have another question about it,I used myDataView[][] and it was ok.Now How can I return NUMBER of filterd ROW,myDataView[] is index of recordset not row. Thanks. Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
            Wish You Were Here-Pink Floyd-1975

            J 1 Reply Last reply
            0
            • M Mazdak

              I have another question about it,I used myDataView[][] and it was ok.Now How can I return NUMBER of filterd ROW,myDataView[] is index of recordset not row. Thanks. Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
              Wish You Were Here-Pink Floyd-1975

              J Offline
              J Offline
              James T Johnson
              wrote on last edited by
              #6

              myDataView.Count; :) James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

              M 1 Reply Last reply
              0
              • J James T Johnson

                myDataView.Count; :) James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

                M Offline
                M Offline
                Mazdak
                wrote on last edited by
                #7

                ya,thats it;) Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
                Wish You Were Here-Pink Floyd-1975

                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