Ejemplo n.º 1
0
 /// <summary>
 /// Function to fill Datagridview
 /// </summary>
 /// <param name="decId1"></param>
 /// <param name="decId2"></param>
 public void GridFill(decimal decId1, decimal decId2)
 {
     try
     {
         DataTable dtbl = new DataTable();
         AccountLedgerSP spAccountledger = new AccountLedgerSP();
         if (cmbAccountGroup.Text == "ALL")
         {
             cmbAccountGroup.Text = "ALL";
         }
         dtbl = spAccountledger.LedgerPopupSearch(txtLedgerName.Text, cmbAccountGroup.Text, decId1, decId2);
         dgvLedgerPopup.DataSource = dtbl;
     }
     catch (Exception ex)
     {
         MessageBox.Show("LP1:" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }