private void BindGridEmployeeTermination(List <HRM_JOB_TERMINATE> jobterminates) { try { GridViewEMP_TR.DataSource = jobterminates; GridViewEMP_TR.DataBind(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "text", "func('" + ex.Message + "')", true); } }
private void GetEmployee_Separation_Details(string employeeID, string OCODE) { var separateEmployee = objEmp_BLL.GetEmployee_Separation_Details(employeeID, OCODE).ToList(); if (separateEmployee.Count > 0) { GridViewEMP_TR.DataSource = separateEmployee; GridViewEMP_TR.DataBind(); GridViewEMP_TR.Rows[0].BackColor = System.Drawing.Color.LightGreen; } else { ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "text", "func('No Seperation Data Found!')", true); GridViewEMP_TR.DataSource = null; GridViewEMP_TR.DataBind(); } }