Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Non-updatable table
Message
From
23/05/2005 04:01:12
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01016568
Message ID:
01016654
Views:
7
Hi Mike,

I ended up overriding mmBaseForm_Closing and using .RejectChanges() on the table I didn't want to update. Not what I would consider an elegant solution, I would much rather prefer that the business object took responsibility for which tables where to be saved, but it works all the same so now I can move on to the next challenge :)

protected override void mmBaseForm_Closing(object sender, CancelEventArgs e)
{
DataSet ds = oPrimBizObj.GetCurrentDataSet();
DataTable nonMembers = ds.Tables[oPrimBizObj.NonMembersTable];
nonMembers.RejectChanges();
base.mmBaseForm_Closing(sender, e);
}

Thanks for your help,

Andrew
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform