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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. problem with dataview

problem with dataview

Scheduled Pinned Locked Moved C#
help
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.
  • F Offline
    F Offline
    foysal mamun
    wrote on last edited by
    #1

    after filtering dataview, when i retrive the dataview by a loop. i get the orginal dataview contents. but if i use it as a datasource of a datagrid then i can found the filtered data.plz fix the problem...

    R 1 Reply Last reply
    0
    • F foysal mamun

      after filtering dataview, when i retrive the dataview by a loop. i get the orginal dataview contents. but if i use it as a datasource of a datagrid then i can found the filtered data.plz fix the problem...

      R Offline
      R Offline
      rah_sin
      wrote on last edited by
      #2

      try the following code int i=0; IEnumerator ienm = dtv.GetEnumerator(); while(ienm.MoveNext()) { MessageBox.Show(dtv[i].Row["column name"].ToString()); i++; } here dtv is filtered dataview rahul -- modified at 5:21 Monday 29th May, 2006

      F 1 Reply Last reply
      0
      • R rah_sin

        try the following code int i=0; IEnumerator ienm = dtv.GetEnumerator(); while(ienm.MoveNext()) { MessageBox.Show(dtv[i].Row["column name"].ToString()); i++; } here dtv is filtered dataview rahul -- modified at 5:21 Monday 29th May, 2006

        F Offline
        F Offline
        foysal mamun
        wrote on last edited by
        #3

        thanks for ur help. but now i want to put this values of dataview in a datatable.but how i can not do it. cause i am new in c#.plz help me...

        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