コード例 #1
0
        public void HienThiDS_MaNganhHang()
        {
            DataTable dt_maloai = hh.LayDS_MaNganhHang();

            cb_MaLoai.DataSource    = dt_maloai;
            cb_MaLoai.DisplayMember = "TenDanhMuc";
            cb_MaLoai.ValueMember   = "MaDanhMuc";
            if (cb_MaLoai.Items.Count > 0)
            {
                cb_MaLoai.SelectedIndex = 0;
            }
        }