Private Sub btnUpdateComp_Click(sender As Object, e As EventArgs) Handles btnUpdateComp.Click Dim strTheComputerSelected = DataGridView1.SelectedCells.ToString Dim theComputer = (From aComputer In DB.Computers Where aComputer.SerialNumber = DataGridView1.Focused.ToString Select aComputer).FirstOrDefault theComputer.SerialNumber = txtSerialNum.Text theComputer.Color = cboColor.Text theComputer.ManCompany = cboMCompany.Text theComputer.OpertionSys = cboOS.Text theComputer.Price = txtPrice.Text theComputer.RAM = txtRAM.Text theComputer.ScreenSize = txtScreen.Text theComputer.Type = cboType.Text theComputer.Weight = txtWeight.Text DB.SaveChanges() UpdateComputersList() End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)