コード例 #1
0
 private void LoadDMNhom()
 {
     _KTNHOMHHRepo = new KTNHOMHHRepo();
     cboMaNhom.DataSource = _KTNHOMHHRepo.GetAll();
     cboMaNhom.DisplayMember = "MA_NHOM";
     cboMaNhom.ValueMember = "ID";
     cboMaNhom.DropDownColumns = "MA_NHOM,TEN_NHOM";
     cboMaNhom.SelectedIndex = -1;
 }
コード例 #2
0
 private void Load_Data()
 {
     try
     {
         _KTNHOMHHRepo = new KTNHOMHHRepo();
         gridData.DataSource = _KTNHOMHHRepo.GetAll();
         //_db = new dbVstoreAppDataContext(Const.builder.ConnectionString);
         //gridData.DataSource = null;
         //gridData.DataSource = _db.KT_NHOMHHs;
         //gridData.RefreshDataSource();
         //gridView1.RefreshData();
     }
     catch (Exception) { }
 }