Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'Flushing' data-bound controls
Message
From
05/11/2003 14:31:27
 
 
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00845238
Message ID:
00846725
Views:
23
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform