DataRowCollection.Find Method throws invalidcastexception

  • Thread starter Thread starter Sagaert Johan
  • Start date Start date
S

Sagaert Johan

This peace of code throws an invalidcastexception on the find method, Why
?

(the same code with the same xml files does not ggive any errors.in the full
framework)

int i=0;
DataSet dss=new DataSet();

dss.ReadXmlSchema("localarm.sch");

dss.ReadXml("localarm.xml");

DataRow dr=dss.Tables["ALARMS"].Rows.Find(i);


any hints ?

Johan
 
Back
Top