DataTable dt = dataSet1.table1.GetAllRows();
DataRow[] foundRow = dt.Select("catalogid = 0", "");
foreach (DataRow row in foundRow)
{
dt.Rows.Remove(row);
}
GridView1.DataSource = dt;
GridView1.DataBind();
时间: 2024-11-25 06:48:04
DataTable dt = dataSet1.table1.GetAllRows();
DataRow[] foundRow = dt.Select("catalogid = 0", "");
foreach (DataRow row in foundRow)
{
dt.Rows.Remove(row);
}
GridView1.DataSource = dt;
GridView1.DataBind();