protected void GVGiftCardOrders_RowDeleting(object sender, GridViewDeleteEventArgs e) { GiftCardsDAL giftCardsDAL = new GiftCardsDAL { ConnectionString = ConfigurationManager.ConnectionStrings["MySQLTest"].ToString() }; string OrderNo = GVGiftCardOrders.DataKeys[e.RowIndex].Values["OrderNo"].ToString(); giftCardsDAL.DeleteGiftCardsInvoice(OrderNo); FetchGCInvoice(searchOrder, searchEmp, sdate, edate); }