Hi! Steve,
Really sorry, to drive you mad due to 'error' in my understanding.
Anyways, I have tried exactly the senario, that you have explained. Here is the solution,
Write below given lines in your form's closing event.
for (int nTable = 0; nTable < ds.Tables.Count; nTable++)
{
for (int nRow = 0; nRow < ds.Tables[nTable].Rows.Count; nRow++)
{
if (ds.Tables[nTable].Rows[nRow].HasVersion(DataRowVersion.Proposed))
{
//Write a code to save/reject changes.
}
}
}
The above given code will check for all the tables, rows in your ds object. Only, the inner-most block's code changes for Accept / Rejection of changes.
Hope this will help you and also, hope this time I am not making any 'error'.
If you are courageous, listen to your heart. If you are coward, listen to your head.