Ejemplo n.º 1
0
        public void getAllProducts()
        {
            dt = mn.getProducts();
            txtProductID.DataBindings.Clear();
            txtProductName.DataBindings.Clear();
            txtPrice.DataBindings.Clear();
            bs.DataSource          = dt;
            dgvProducts.DataSource = bs;

            bindingNav.BindingSource = bs;
            txtProductID.DataBindings.Add("Text", bs, "ProductID");
            txtProductName.DataBindings.Add("Text", bs, "ProductName");
            txtPrice.DataBindings.Add("Text", bs, "ProductPrice");
        }
Ejemplo n.º 2
0
 public void getAllProducts()
 {
     dt = mn.getProducts();
     dgvProducts.DataSource = dt;
 }