SIVA

SIVA

  • NA
  • 742
  • 708.5k

DataRelation manipulation in Asp.net

Dec 22 2011 8:32 AM
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)