private void btnClose_Click(object sender, EventArgs e) { m_Row.RejectChanges(); this.Close(); } private void btnOK_Click(object sender, EventArgs e) { m_Row.Table.AcceptChanges(); this.Close(); }Now when I get back to my Agency form,I call an update method on my Bussiness layer to update ONLY the DataRow.
private void btnProducerEdit_Click(object sender, EventArgs e) { int i = grdProducers.CurrentRow.Index; DataRow row = dsProducers.Tables["Producers"].DefaultView[i].Row; Producer frmProducers = new Producer(row,i); frmProducers.Text = "Producers"; frmProducers.ShowDialog(); // Bonnie here is where I would call my Update method in my // business layer }Does it make sense??. I just want to go back and only save the DataRow that was changed on the producer form. Since there might be another changes on the Agency form that the user still has not commit.