public FrmPackagePO() { InitializeComponent(); var qs = db.Supplier_Order.Where(x => x.Supplier_Order_Status_ID == 2).ToList(); dataGridView1.DataSource = db.Load_Purchase_Order_1().Where(lpo => lpo.Purchase_Order_Status_Description == "Placed").ToList(); dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect; btnGenerateQR.Enabled = false; dataGridView1.ReadOnly = true; }
public frmSearchPO() { InitializeComponent(); dataGridView1.DataSource = db.Load_Purchase_Order_1().ToList(); }