private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { Inventory.CurrentProductIndex = e.RowIndex; Inventory.CurrentProduct = Inventory.lookupProduct(Inventory.CurrentProductIndex); }
private void ProductsGridView_CellClick(object sender, DataGridViewCellEventArgs e) { Inventory.CurrentProductIndex = e.RowIndex; Inventory.CurrentProduct = Inventory.lookupProduct(Inventory.CurrentProductIndex); ProductsGridView.DefaultCellStyle.SelectionBackColor = Color.Yellow; }