protected void gvAllotments_RowUpdating(object sender, GridViewUpdateEventArgs e) { BLL_PB_PortageBill.Update_Allotment(Convert.ToInt32(e.Keys["Vessel_ID"]), Convert.ToInt32(e.Keys["AllotmentID"]), UDFLib.ConvertToDecimal(((TextBox)gvAllotments.Rows[e.RowIndex].FindControl("txtAllotmentAmount")).Text), Convert.ToInt32(((DropDownList)gvAllotments.Rows[e.RowIndex].FindControl("ddlAccount")).SelectedValue), Convert.ToInt32(Session["userid"])); gvAllotments.EditIndex = -1; Load_Allotments(); }