J
jaYPee
At last I have found the problem why I can't get to work w/ importrow.
The fact is that I'm trying to import data to related table. But after
importing data the foreign is blank. So thats why the record is not
showing in to datagrid.
Anyone know how to work around w/ this problem?
Here's my current code:
Dim copyRows() As DataRow =
DsStudentCourse1.Tables("Course").Select("CourseCode = 'AUTO 1'")
Dim custTable As DataTable =
DsStudentCourse1.Tables("SchYrSemCourseJoin")
Dim copyRow As DataRow
For Each copyRow In copyRows
custTable.ImportRow(copyRow)
Next
In my SchYrSemCourseJoin Table I have SchYrSemID field (foreign key)
which is needed. But after using the code above this field is not
filled. I have already setup the correct relationship.
So anyone know if it is possible to fill the SchYrSemID field w/ the
correct key from parent table?
The fact is that I'm trying to import data to related table. But after
importing data the foreign is blank. So thats why the record is not
showing in to datagrid.
Anyone know how to work around w/ this problem?
Here's my current code:
Dim copyRows() As DataRow =
DsStudentCourse1.Tables("Course").Select("CourseCode = 'AUTO 1'")
Dim custTable As DataTable =
DsStudentCourse1.Tables("SchYrSemCourseJoin")
Dim copyRow As DataRow
For Each copyRow In copyRows
custTable.ImportRow(copyRow)
Next
In my SchYrSemCourseJoin Table I have SchYrSemID field (foreign key)
which is needed. But after using the code above this field is not
filled. I have already setup the correct relationship.
So anyone know if it is possible to fill the SchYrSemID field w/ the
correct key from parent table?