private void PartsGridView_CellClick(object sender, DataGridViewCellEventArgs e) { Inventory.CurrentPartIndex = e.RowIndex; Inventory.CurrentPart = Inventory.LookupPart(Inventory.CurrentPartIndex); PartsGridView.DefaultCellStyle.SelectionBackColor = Color.Yellow; }