4
Answers

DataRelation manipulation in Asp.net

Photo of SIVA

SIVA

13y
2.3k
1
Hi All,

I am trying to establish the relationship between two tables but its showing the following error

Object reference not set to an instance of an object.

 the code is as followsDataRelation oDR = new DataRelation("Dept_Emp", oDS.Tables["tbl_Department"].Columns["DNo"], oDS.Tables["tbl_EmpDept"].Columns["DNo"], false);

Answers (4)