private void btnUpdate_Click(object sender, EventArgs e) { Model.Education db = new Model.Education(); db.USERID = Convert.ToInt32(txtUserID.Text); db.EduID = Convert.ToInt32(txtEduID.Text); db.NameEdu = txtNameEdu.Text; db.FromEdu = txtFromEdu.Text; db.DecripEdu = txtDecripEdu.Text; EducationBUL.Update(db); dataGridViewEducation.DataSource = EducationBUL.getlist(); }
private void Education_Load(object sender, EventArgs e) { dataGridViewEducation.DataSource = EducationBUL.getlist(); }