protected void egvProductPrices_RowDeleting(object sender, GridViewDeleteEventArgs e) { int priceID = (int)egvProductPrices.DataKeys[e.RowIndex].Value; DataActionStatus status = ProductPrices.Delete(priceID); switch (status) { case DataActionStatus.Success: BindData(); break; default: case DataActionStatus.UnknownFailure: throw new HHException(ExceptionType.Failed, "删除报价信息失败,请确认此报价信息存在,并状态正常!"); } }