Esempio n. 1
0
 protected void dgvOccupation_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     try
     {
         DataTable ldt = new DataTable();
         if (e.CommandName == "EditOccupation")
         {
             //this.programmaticModalPopupEdit.Show();
             int         linIndex           = Convert.ToInt32(e.CommandArgument);
             GridViewRow gvr                = (GridViewRow)((Control)e.CommandSource).NamingContainer;
             LinkButton  lnkOccupationCode  = (LinkButton)gvr.FindControl("lnkOccupationCode");
             int         lintOccupationCode = Convert.ToInt32(lnkOccupationCode.Text);
             Session["PKId"] = lnkOccupationCode.Text;
             ldt             = mobjOccupationBLL.GetOccupationForEdit(lintOccupationCode);
             FillControls(ldt);
         }
     }
     catch (Exception ex)
     {
         Commons.FileLog("frmOccupationMaster -  dgvOccupation_RowCommand(object sender, GridViewCommandEventArgs e)", ex);
     }
 }