private void btnSave_Click(object sender, EventArgs e) { if (SelectedItem != null) { int ID_LINQ = SelectedItem.GetID(); Competition competition = Access.Select <Competition>().Where(a => a.CompetitionID == ID_LINQ).First(); competition.CompetitionName = tbName.Text; competition.CompetitionStartDate = dpStart.Value; competition.CompetitionEndDate = dpEnd.Value; competition.CompetitionDescription = tbDetails.Text; competition.Edit(); MessageBox.Show("Update with success!", "Success"); LoadInfo(); } }