for (int tableno = 0; tableno < dsSMS.Tables.Count; tableno++)
{
foreach (DataRow dr in dsSMS.Tables[tableno].Rows)
{
if (dr["ID"].ToString().Trim() == "24")
{
dr.Delete();
}
}
dsSMS.Tables[tableno].AcceptChanges();
}
{
foreach (DataRow dr in dsSMS.Tables[tableno].Rows)
{
if (dr["ID"].ToString().Trim() == "24")
{
dr.Delete();
}
}
dsSMS.Tables[tableno].AcceptChanges();
}