0

I have an web infragistics grid which gets populated from below lines of code.

infraGrid.ClearDataSource();
infraGrid.DataSource = objCdtSearchResultsOutput.ResultsList.Tables[0];
infraGrid.DataBind();

Whereas in other class I have a method with below signature

public void GridOperation(int i,WebDataGrid wdgBillingPackageList)
{
}

Now when I am trying to invoke above method with below code

Obj.GridOperation(1, this.infraGrid);

I am getting NullPointerException. Above method call happens in the page where Grid gets populated. How to get it done ? What is being missed ?

user1197114
  • 63
  • 1
  • 1
  • 9

0 Answers0