Exemplo n.º 1
0
        private void gridControl1_Load(object sender, EventArgs e)
        {
            BindingSource bs = new BindingSource();

            ncc.Get_CONGTY();
            bs.DataSource           = ncc.Get_CONGTY().Tables["CONGTY"];
            gridControl1.DataSource = bs;
        }
Exemplo n.º 2
0
 private void NhapKho_Load(object sender, EventArgs e)
 {
     this.ActiveControl = txt_mathuoc;
     ncc.Get_CONGTY();
     foreach (DataRow dr in ncc.Get_TENCONGTY().Rows)
     {
         cbb_tencty.Items.Add(dr["MaCongTy"].ToString() + "  -  " + dr["TenCongTy"].ToString());
     }
     foreach (DataRow dr in ds.Get_DuocSy().Rows)
     {
         cbb_DuocSy.Items.Add(dr["MaDuocSy"].ToString() + "  -  " + dr["TenDuocSy"].ToString());
     }
     cbb_tencty.SelectedIndex = 0;
 }