예제 #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;
        }
예제 #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;
 }