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. Database & SysAdmin
  3. Database
  4. how to apply filter to Master/Detail records in dataset

how to apply filter to Master/Detail records in dataset

Scheduled Pinned Locked Moved Database
csharpcomtutorial
2 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.
  • I Offline
    I Offline
    imran_shahid msn com
    wrote on last edited by
    #1

    Dear All! I have fill the ADO.NET dataset with two tables and joined them as a master/detail. I want to filter this dataset by applying filter on master table records. Does anybody know, how to apply filter on dataset have two tables as master/detail. Email: imran_shahid@msn.com

    G 1 Reply Last reply
    0
    • I imran_shahid msn com

      Dear All! I have fill the ADO.NET dataset with two tables and joined them as a master/detail. I want to filter this dataset by applying filter on master table records. Does anybody know, how to apply filter on dataset have two tables as master/detail. Email: imran_shahid@msn.com

      G Offline
      G Offline
      gokselm
      wrote on last edited by
      #2

      If you are using more than one table in a dataset you should already have defined the relationships between them. If you did not, look to the msdn for Relations in DataSets. After you filter the master table you can get the the other table's related rows by using the GetChildRows method of each row on the master table. I hope it helps.

      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