L
lekhacnair
Hello,
I am stuck with my datagrid datarelation.
My code looks like this:
Dim Case_Details As New DataTable
Case_Details = data1.Tables(0)
Dim Validation_Details As New DataTable
Validation_Details = data2.Tables(0)
data.Tables.Add(Case_Details.Copy())
data.Tables.Add(Validation_Details.Copy())
Dim dc1 As DataColumn =
data.Tables(0).Columns("facility_visit_id")
Dim dc2 As DataColumn = data.Tables(1).Columns("Visit_ID")
Dim rel As New DataRelation("Case2Validation", dc1, dc2,
True)
How do I get the count of child rows each parent has?
Thanks,
Lek
I am stuck with my datagrid datarelation.
My code looks like this:
Dim Case_Details As New DataTable
Case_Details = data1.Tables(0)
Dim Validation_Details As New DataTable
Validation_Details = data2.Tables(0)
data.Tables.Add(Case_Details.Copy())
data.Tables.Add(Validation_Details.Copy())
Dim dc1 As DataColumn =
data.Tables(0).Columns("facility_visit_id")
Dim dc2 As DataColumn = data.Tables(1).Columns("Visit_ID")
Dim rel As New DataRelation("Case2Validation", dc1, dc2,
True)
How do I get the count of child rows each parent has?
Thanks,
Lek