private void AddProduct_Click(object sender, EventArgs e)
        {
            if (dgvProducts.Rows.Count == 1)
            {
                EnableFields();
            }

            add.Enabled = false;
            ProductBindingSource.AddNew();
            //dgvProducts.DataSource = ProductBindingSource;
            dgvProducts.CurrentRow.Selected = true;
            code_.Focus();
        }
Ejemplo n.º 2
0
 private void ProductAddButton_Click(object sender, EventArgs e)
 {
     ProductBindingSource.AddNew();
     HideDataGrid(ProductDataGridView, ProductAddButton, ProductPanel);
 }