Beispiel #1
0
        protected void grdPriceList_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            var dataKey = grdPriceList.DataKeys[e.RowIndex];

            if (dataKey != null)
            {
                int productPriceId = (int)dataKey.Value;
                Controller.DeleteProductPrice(productPriceId);
            }
            grdPriceList.DataSource = ProductPrices;
            grdPriceList.DataBind();
        }