Exemplo n.º 1
0
 void fillCompany()
 {
     try
     {
         DataTable dt = ClassSetting.selectComOfCity((int)cmbCity.SelectedValue, (int)cmbCountry.SelectedValue);
         cmbCompany.DataSource    = dt;
         cmbCompany.DisplayMember = "company_name";
         cmbCompany.ValueMember   = "company_id";
     }
     catch (Exception) { }
 }