DataRowCollection.Find Method throws invalidcastexception

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top