DataTable dt = newsBase.GetAllnews();
DataRow[] foundRow;
foundRow = dt.Select("catalogid = 0", "");
DataTable newTb = dt.Clone();
foreach (DataRow row in foundRow)
{
newTb.Rows.Remove(row);
}
GridView1.DataSource = newTb ;
GridView1.DataBind();
DataRow[] foundRow;
foundRow = dt.Select("catalogid = 0", "");
DataTable newTb = dt.Clone();
foreach (DataRow row in foundRow)
{
newTb.Rows.Remove(row);
}
GridView1.DataSource = newTb ;
GridView1.DataBind();