protected void gvDenominations_RowUpdating(object sender, GridViewUpdateEventArgs e) { try { int Vessel_ID = 0; int CTM_ID = 0; int Office_ID = 0; if (Request.QueryString["Vessel_ID"] != null) { Vessel_ID = UDFLib.ConvertToInteger(Request.QueryString["Vessel_ID"].ToString()); } if (Request.QueryString["ID"] != null) { CTM_ID = UDFLib.ConvertToInteger(Request.QueryString["ID"].ToString()); } if (Request.QueryString["Office_ID"] != null) { Office_ID = UDFLib.ConvertToInteger(Request.QueryString["Office_ID"].ToString()); } int ID = UDFLib.ConvertToInteger(gvDenominations.DataKeys[e.RowIndex].Value.ToString()); int Denomination = UDFLib.ConvertToInteger(e.NewValues["Denomination"].ToString()); int Notes_Office = UDFLib.ConvertToInteger(e.NewValues["NoOfNotes_by_Office"].ToString()); int Res = BLL_PB_PortageBill.UPDATE_CTM_Denominations(Vessel_ID, CTM_ID, Office_ID, ID, Notes_Office, Denomination, GetSessionUserID()); gvDenominations.EditIndex = -1; gvDenominations_BindData(); } catch { } }