Esempio n. 1
0
 /// <summary>
 /// Function to fill Area combo box
 /// </summary>
 public void AreaComboFill()
 {
     try
     {
         AccountLedgerSP spAccountLedger = new AccountLedgerSP();
         DataTable dtbl = new DataTable();
         dtbl = spAccountLedger.cmbAreafillInCustomer();
         DataRow dr = dtbl.NewRow();
         dr["areaId"] = 0;
         dr["areaName"] = "All";
         dtbl.Rows.InsertAt(dr, 0);
         cmbArea.DataSource = dtbl;
         cmbArea.ValueMember = "areaId";
         cmbArea.DisplayMember = "areaName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("Cus1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }