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. Filtering dataset

Filtering dataset

Scheduled Pinned Locked Moved Visual Basic
databasehelptutorial
4 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.
  • C Offline
    C Offline
    carrigart
    wrote on last edited by
    #1

    Hi, Looking for a bit of help. What I want to do to filter a table in my database by a month select. So for example I want to see the results for January. I have populated my dataset with all the records in my database when I first start my application. da.Fill(ds,"Records) 'da is my dataadapter and ds is my dataset So is there some way I can filter my dataset to show the results that I just want or should I re populate my dataset with the dataadapter using a SQL Statment such as SELECT * Records WHERE etc... Is there anyother way Thanks for your help

    N V 2 Replies Last reply
    0
    • C carrigart

      Hi, Looking for a bit of help. What I want to do to filter a table in my database by a month select. So for example I want to see the results for January. I have populated my dataset with all the records in my database when I first start my application. da.Fill(ds,"Records) 'da is my dataadapter and ds is my dataset So is there some way I can filter my dataset to show the results that I just want or should I re populate my dataset with the dataadapter using a SQL Statment such as SELECT * Records WHERE etc... Is there anyother way Thanks for your help

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Work with the Select method provided in DataTable class.

      Navaneeth How to use google | Ask smart questions

      C 1 Reply Last reply
      0
      • C carrigart

        Hi, Looking for a bit of help. What I want to do to filter a table in my database by a month select. So for example I want to see the results for January. I have populated my dataset with all the records in my database when I first start my application. da.Fill(ds,"Records) 'da is my dataadapter and ds is my dataset So is there some way I can filter my dataset to show the results that I just want or should I re populate my dataset with the dataadapter using a SQL Statment such as SELECT * Records WHERE etc... Is there anyother way Thanks for your help

        V Offline
        V Offline
        Vimalsoft Pty Ltd
        wrote on last edited by
        #3

        use can use DataView see this http://www.csharp-examples.net/dataview-rowfilter/[^] Hope it helps

        Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.tiyaneProperties.co.za vuyiswam@its.co.za

        1 Reply Last reply
        0
        • N N a v a n e e t h

          Work with the Select method provided in DataTable class.

          Navaneeth How to use google | Ask smart questions

          C Offline
          C Offline
          carrigart
          wrote on last edited by
          #4

          Thanks, the select method worked great :-D

          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