"You must implement the Add(System.Data.DataRowView) method on System.Data.DataView because it inherits from ICollection"
Does anyone know exactly what this means? Here is a snipet of my code:
[WebMethod]
public DataView getdataview()
{
sqlDataAdapter1.Fill(authorDataSet1);
DataView dv = authorDataSet1.Tables["authors"].DefaultView;
return dv;
}
It only happens when I return a DataView. So if I was to make it a return void function and do datachanges to the dataview inside this function there would be no problems.
If anyone can help it would be much appreciated.
Does anyone know exactly what this means? Here is a snipet of my code:
[WebMethod]
public DataView getdataview()
{
sqlDataAdapter1.Fill(authorDataSet1);
DataView dv = authorDataSet1.Tables["authors"].DefaultView;
return dv;
}
It only happens when I return a DataView. So if I was to make it a return void function and do datachanges to the dataview inside this function there would be no problems.
If anyone can help it would be much appreciated.