private void Form1_Load(object sender, EventArgs e){ this.kisiTableAdapter.Fill(this.denekDataSet.Kisi); denekDataSet.Kisi.KisiRowChanged += new denekDataSet.KisiRowChangeEventHandler(Kisi_KisiRowChanged);}void Kisi_KisiRowChanged(object sender, denekDataSet.KisiRowChangeEvent e) { DataRowAction drc = e.Action; if (drc == DataRowAction.Change) { DialogResult dr = MessageBox.Show("do you want to save changes!", "warning", MessageBoxButtons.YesNo); if (dr == DialogResult.No) { e.Row.RejectChanges(); } } }
void Kisi_KisiRowChanged(object sender, denekDataSet.KisiRowChangeEvent e) { DataRowAction drc = e.Action; if (drc == DataRowAction.Change) { DialogResult dr = MessageBox.Show("do you want to save changes!", "warning", MessageBoxButtons.YesNo); if (dr == DialogResult.No) { e.Row.RejectChanges(); }else { kisiTableAdapter.Update(denekDataSet.Kisi); } } }