private void Load_Data()
 {
     try
     {
         _KTDMHHRepo = new KTDMHHRepo();
         gridData.DataSource = _KTDMHHRepo.GetAll();
         //_db = new dbVstoreAppDataContext(Const.builder.ConnectionString);
         //gridData.DataSource = null;
         //gridData.DataSource = _db.KT_DMHHs;
         //gridData.RefreshDataSource();
         //gridView1.RefreshData();
     }
     catch (Exception) { }
 }
예제 #2
0
 private void LoadVTHHCo()
 {
     _KTDMHHRepo = new KTDMHHRepo();
     cboVTHHCo.DisplayMember = "MA_DM";
     cboVTHHCo.ValueMember = "ID";
     cboVTHHCo.DropDownColumns = "MA_DM,TEN_DM";
     cboVTHHCo.DataSource = _KTDMHHRepo.GetAll();
     cboVTHHCo.SelectedIndex = -1;
 }