Exemplo n.º 1
0
        private void frm_loaihang_Load(object sender, EventArgs e)
        {
            DataTable dtLoaiHang = new DataTable();

            dtLoaiHang        = lh.getData();
            dtgvLh.DataSource = dtLoaiHang;
            bingding();
        }
Exemplo n.º 2
0
        private void load_loaihang()
        {
            LoaiHangctrl khctr = new LoaiHangctrl();

            txtLoaih.DataSource    = khctr.getData();
            txtLoaih.DisplayMember = "Tenloai";
            txtLoaih.ValueMember   = "Maloai";
            txtLoaih.SelectedIndex = 0;
        }