/// <summary> /// Function to fill Datagridview /// </summary> public void DebitNoteRegisterGridFill() { try { DataTable dtbl = new DataTable(); DebitNoteMasterSP spDebitNoteMaster = new DebitNoteMasterSP(); dtbl = spDebitNoteMaster.DebitNoteMasterViewAllWithSlNo(); dgvDebitNoteRegister.DataSource = dtbl; } catch (Exception ex) { MessageBox.Show("DNTREG1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill Datagridview /// </summary> public void DebitNoteRegisterGridFill() { try { DataTable dtbl = new DataTable(); DebitNoteMasterSP spDebitNoteMaster = new DebitNoteMasterSP(); dtbl = spDebitNoteMaster.DebitNoteMasterViewAllWithSlNo(); dgvDebitNoteRegister.DataSource = dtbl; } catch (Exception ex) { formMDI.infoError.ErrorString = "DNTREG1:" + ex.Message; } }
/// <summary> /// Function to fill Datagridview /// </summary> public void DebitNoteRegisterGridFill() { try { DataTable dtbl = new DataTable(); DebitNoteMasterSP spDebitNoteMaster = new DebitNoteMasterSP(); dtbl = spDebitNoteMaster.DebitNoteMasterViewAllWithSlNo(); dgvDebitNoteRegister.DataSource = dtbl; } catch (Exception ex) { MessageBox.Show("DNTREG1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }