示例#1
0
        private void ThemHangHoa_Load(object sender, EventArgs e)
        {
            cbNCC.DataSource    = ncc.LayNCC().Tables[0];
            cbNCC.DisplayMember = "MaNCC";
            cbNCC.ValueMember   = "MaNCC";

            cbLoaiSP.DataSource    = sp.LaySP().Tables[0];
            cbLoaiSP.DisplayMember = "LoaiSPID";
            cbLoaiSP.ValueMember   = "LoaiSPID";
        }
示例#2
0
        public void Loaddata()
        {
            dtNhaCC = new DataTable();
            dtNhaCC.Clear();
            DataSet ds = ncncc.LayNCC();

            dtNhaCC           = ds.Tables[0];
            dgvNCC.DataSource = dtNhaCC;
            dgvNCC.AutoResizeColumns();
            dgvNCC_CellContentClick(null, null);
        }