protected void GVFloat_RowDeleting(object sender, GridViewDeleteEventArgs e) { FloatAmountDAL floatDAL = new FloatAmountDAL { ConnectionString = ConfigurationManager.ConnectionStrings["MySQLTest"].ToString() }; string OrderNo = GVFloat.DataKeys[e.RowIndex].Values["OrderNo"].ToString(); floatDAL.DeleteFloat(OrderNo); FetchFloat(); }