/// <summary> /// Function to fill Datagridview /// </summary> public void GridFill() { try { DataTable dtblBonusDeduction = new DataTable(); BonusDedutionSP spBonus = new BonusDedutionSP(); dtblBonusDeduction = spBonus.BonusDeductionSearchForPopUp(txtEmployeeCode.Text, txtEmployeeName.Text); dgvEmployee.DataSource = dtblBonusDeduction; } catch (Exception ex) { formMDI.infoError.ErrorString = "EMPP14:" + ex.Message; } }
/// <summary> /// Function to fill Datagridview /// </summary> public void GridFill() { try { DataTable dtblBonusDeduction = new DataTable(); BonusDedutionSP spBonus = new BonusDedutionSP(); dtblBonusDeduction = spBonus.BonusDeductionSearchForPopUp(txtEmployeeCode.Text, txtEmployeeName.Text); dgvEmployee.DataSource = dtblBonusDeduction; } catch (Exception ex) { MessageBox.Show("EMPP13:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }