示例#1
0
        public void HienThi()
        {
            dgvKhachHang.DataSource = kh.HienThiKhachHang();
            for (int i = 0; i < dgvKhachHang.RowCount; i++)
            {
                dgvKhachHang.Rows[i].Cells[0].Value = (i + 1).ToString();
            }

            dgvSanPham.DataSource = sp.HienThiSP_LH();
        }
        public void HienThiDGV()
        {
            dgvKhachHang.DataSource = kh.HienThiKhachHang();
            int i = 0;

            while (i < dgvKhachHang.Rows.Count - 1)
            {
                dgvKhachHang.Rows[i].Cells[0].Value = (i + 1).ToString();
                i++;
            }
        }