Beispiel #1
0
 /// <summary>
 /// Function to fill AccountyLedger combobox
 /// </summary>
 public void LedgerComboFill()
 {
     try
     {
         DataTable dtbl = new DataTable();
         TransactionsGeneralFill obj = new TransactionsGeneralFill();
         dtbl = obj.AccountLedgerComboFill();
         DataRow dr = dtbl.NewRow();
         dr[0] = 0;
         dr[2] = "All";
         dtbl.Rows.InsertAt(dr, 0);
         cmbAccountLedger.DataSource    = dtbl;
         cmbAccountLedger.DisplayMember = "ledgerName";
         cmbAccountLedger.ValueMember   = "ledgerId";
     }
     catch (Exception ex)
     {
         MessageBox.Show("RR2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }