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