J
jaYPee
I'm wondering how to use the importrow so that the record from other
datatable will be imported to other datatable.
here's my datatable and dataview
Private dtStudents As DataTable
Private dtSchYrSem As DataTable
Private dtSchYrSemCourse As DataTable
Private dtCourse As DataTable
Private dvSchYrSem As DataView
Private dvSchYrSemCourse As DataView
Private dvCourse As DataView
some of my code:
dtStudents = DsStudentCourse1.Tables("Students")
dtSchYrSem = DsStudentCourse1.Tables("SchYrSem")
dtSchYrSemCourse =
DsStudentCourse1.Tables("SchYrSemCourseJoin")
dtCourse = DsStudentCourse1.Tables("Course")
dvSchYrSem = dtSchYrSem.DefaultView
dvSchYrSemCourse = dtSchYrSemCourse.DefaultView
dvCourse = dtCourse.DefaultView
the datasource of my datagrid2 is:
..DataSource = dvSchYrSemCourse
my problem is on how can I import the data from dtCourse to this
datagrid2 based on the criteria.
datatable will be imported to other datatable.
here's my datatable and dataview
Private dtStudents As DataTable
Private dtSchYrSem As DataTable
Private dtSchYrSemCourse As DataTable
Private dtCourse As DataTable
Private dvSchYrSem As DataView
Private dvSchYrSemCourse As DataView
Private dvCourse As DataView
some of my code:
dtStudents = DsStudentCourse1.Tables("Students")
dtSchYrSem = DsStudentCourse1.Tables("SchYrSem")
dtSchYrSemCourse =
DsStudentCourse1.Tables("SchYrSemCourseJoin")
dtCourse = DsStudentCourse1.Tables("Course")
dvSchYrSem = dtSchYrSem.DefaultView
dvSchYrSemCourse = dtSchYrSemCourse.DefaultView
dvCourse = dtCourse.DefaultView
the datasource of my datagrid2 is:
..DataSource = dvSchYrSemCourse
my problem is on how can I import the data from dtCourse to this
datagrid2 based on the criteria.