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. TableAdapters with Relation

TableAdapters with Relation

Scheduled Pinned Locked Moved Database
questionhelp
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.
  • R Offline
    R Offline
    RoyRose78
    wrote on last edited by
    #1

    Hello all, I have Typed-DataSet with 2 TableAdapters one for grades and one for courses. The TableAddapters have relation, so when I use grade row I can get the parent row from a property:

    foreach (DataSetCollege.GradesRow var in grades)
    {
    Response.Write( var.grade + var.CoursesRow.crsName);
    }

    My problem is that the var.CoursesRow is always null :confused: How do I use this property? Thanks, Roy.

    J 1 Reply Last reply
    0
    • R RoyRose78

      Hello all, I have Typed-DataSet with 2 TableAdapters one for grades and one for courses. The TableAddapters have relation, so when I use grade row I can get the parent row from a property:

      foreach (DataSetCollege.GradesRow var in grades)
      {
      Response.Write( var.grade + var.CoursesRow.crsName);
      }

      My problem is that the var.CoursesRow is always null :confused: How do I use this property? Thanks, Roy.

      J Offline
      J Offline
      John_Adams
      wrote on last edited by
      #2

      Hi, It seems that courses TableAdapter is not getting populated therefore, please double check whether data is coming in TableAdapter or not. Hope this helps:)

      Regards, John Adams ComponentOne LLC

      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