DataSet ds1=new DataSet(); DataSet ds2=new DataSet();
//copy a datarow from one dataset to another
foreach(DataRow dr in ds1.Tables[0].rows)
{
if(any condition)
{
ds2.Tables[0].ImportRow(r);
}
}
DataSet ds1=new DataSet(); DataSet ds2=new DataSet();
//copy a datarow from one dataset to another
foreach(DataRow dr in ds1.Tables[0].rows)
{
if(any condition)
{
ds2.Tables[0].ImportRow(r);
}
}