Ejemplo n.º 1
0
        protected void gridView_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            //if (gridView.Rows.Count <= 1)
            //{
            //    e.Cancel = true;
            //}
            string ProductId = gridView.DataKeys[e.RowIndex].Value.ToString();

            Maticsoft.BLL.Products.Product bll = new Maticsoft.BLL.Products.Product();
            bll.Delete(ProductId);
            BindData();
        }
Ejemplo n.º 2
0
 protected void gridView_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     //if (gridView.Rows.Count <= 1)
     //{
     //    e.Cancel = true;
     //}
     string ProductId = gridView.DataKeys[e.RowIndex].Value.ToString();
     Maticsoft.BLL.Products.Product bll = new Maticsoft.BLL.Products.Product();
     bll.Delete(ProductId);
     BindData();
 }