Home > DeveloperSection > Forums > how we make datarealation
Amit Singh

Total Post:103

Points:721
Posted on    October-02-2010 5:00 AM

 ADO.Net ADO.Net 
Ratings:


 2 Reply(s)
 1885  View(s)
Rate this:
how we create DataRelation ?
please give the appropriate syntax with Example


Uttam Misra

Total Post:125

Points:897
Posted on    October-03-2010 4:39 AM

'Create the Data Relationship in VB.NET
ds.Relations.Add("RelationName",ds.Tables("Employee").Columns("EmployeeID"),
 ds.Tables("EmployeeDetails").Columns("EmployeeID"))
'ds.Tables("Employees").Columns("EmployeeID") [First table name "Employee"]
'ds.Tables("EmployeeDetails").Columns("EmployeeID") [Second table name "EmployeeDetails"]



Modified On Oct-03-2010 04:42:40 AM

Shankar M

Total Post:25

Points:175
Posted on    April-14-2013 9:20 PM


Don't want to miss updates? Please click the below button!

Follow MindStick