/// <summary> /// Function to fill Datagridview /// </summary> public void GridFill() { try { DataTable dtblAdvancePayment = new DataTable(); AdvancePaymentSP spAdvanceRegister = new AdvancePaymentSP(); dtblAdvancePayment = spAdvanceRegister.AdvanceRegisterSearch(txtAdvanceVoucher.Text, txtEmployeeCode.Text, txtEmployeeName.Text, dtpSalaryMonth.Text, cmbVoucherType.Text); dgvAdvanceRegister.DataSource = dtblAdvancePayment; } catch (Exception ex) { formMDI.infoError.ErrorString = "AR1:" + ex.Message; } }
/// <summary> /// Function to fill Datagridview /// </summary> public void GridFill() { try { DataTable dtblAdvancePayment = new DataTable(); AdvancePaymentSP spAdvanceRegister = new AdvancePaymentSP(); dtblAdvancePayment = spAdvanceRegister.AdvanceRegisterSearch(txtAdvanceVoucher.Text, txtEmployeeCode.Text, txtEmployeeName.Text, dtpSalaryMonth.Text, cmbVoucherType.Text); dgvAdvanceRegister.DataSource = dtblAdvancePayment; } catch (Exception ex) { MessageBox.Show("AR1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill Datagridview /// </summary> public void GridFill() { try { DataTable dtblAdvancePayment = new DataTable(); AdvancePaymentSP spAdvanceRegister = new AdvancePaymentSP(); dtblAdvancePayment = spAdvanceRegister.AdvanceRegisterSearch(txtAdvanceVoucher.Text, txtEmployeeCode.Text, txtEmployeeName.Text, dtpSalaryMonth.Text, cmbVoucherType.Text); dgvAdvanceRegister.DataSource = dtblAdvancePayment; } catch (Exception ex) { MessageBox.Show("AR1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }