//populates the "Product" ComboBoxColumn with a list of Products private void populateNewLineProductComboBox(DataGridViewComboBoxColumn cb) { cb.Items.Clear(); var unorderProducts = new List<Reorder>(); var _unordered = new ReorderManager(unorderProducts); unorderProducts = _unordered.GetReordersForVendor((int)cbVendors.SelectedValue, 1); foreach (Reorder product in unorderProducts) { cb.Items.Add(product.Product.Name); } }
private void btnCancel_Click(object sender, EventArgs e) { _vendorOrdered = true; dgvReorder.Rows.Clear(); _report = null; }
//populates datagridview = dgvReord private void populateDataGridView(int vendor) { ReorderManager _reportNull = new ReorderManager(new List<Reorder>()); // 0 will return all products that are under the reorderthreshold lreport = _reportNull.GetReordersForVendor(vendor, 0); _report = new ReorderManager(lreport); populateDGV(); }