punjabtechnicaluniversity.blogspot.in
Dim objRelation As DataRelation
objRelation=NewDataRelation("CustomerAddresses",objDataSet.Tables("Customer").Columns("Custid")
,objDataSet.Tables("Addresses").Columns("Custid_fk"))
objDataSet.Relations.Add(objRelation)
Relation’s can be added between “DataTable” object’s using the “DataRelation” object.Above sample code is trying to build a relationship between “Customer” and “Addresses” “Datatable” using “CustomerAddresses” “DataRelation” object.
Dim objRelation As DataRelation
objRelation=NewDataRelation("CustomerAddresses",objDataSet.Tables("Customer").Columns("Custid")
,objDataSet.Tables("Addresses").Columns("Custid_fk"))
objDataSet.Relations.Add(objRelation)
Relation’s can be added between “DataTable” object’s using the “DataRelation” object.Above sample code is trying to build a relationship between “Customer” and “Addresses” “Datatable” using “CustomerAddresses” “DataRelation” object.
0 comments:
Post a Comment
North India Campus