Hello,

All the samples I got only has 1 column that relates 2 tables.

Dim MyDataRelation As DataRelation
MyDataRelation = New DataRelation("BrUserDept", dtBranchUser.Columns("userid"), dtBranchDept.Columns("userid"))
dsUserDept.Relations.Add(MyDataRelation)

How will I relate 2 tables using more than one column?

Thanks in advance.