/// <summary> /// Function to fill Datagridview /// </summary> public void DebitNoteRegisterGridFill() { try { List<DataTable> listObj = new List<DataTable>(); //DebitNoteMasterSP spDebitNoteMaster = new DebitNoteMasterSP(); DebitNoteBll bllDebitNote = new DebitNoteBll(); listObj = bllDebitNote.DebitNoteMasterViewAllWithSlNo(); dgvDebitNoteRegister.DataSource = listObj[0]; } catch (Exception ex) { MessageBox.Show("DNTREG1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }