Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exception thrown in Rules when deleting
Message
 
To
06/10/2006 12:49:16
Stan Blatti
Shelby Residential & Vocational Services
Memphis, Tennessee, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01159518
Message ID:
01160328
Views:
10
Stan,

>The Rowstate is unchanged even though I just deleted all but one record on the datatable in the UI. I can set the ImmediateDelete on the object to true or false just
>before calling SaveDataset on the object with no effect on the RowState (still 'unchanged' in the Rules object). If I comment out the 'test for various rules', the data is properly deleted from the database and no exception is thrown. The bottom line is that Rowstate of 'deleted' on the datatable in UI is not being translated to a 'deleted' rowstate on the dataset in the Rules object even though the underlying datatable has it marked as 'Deleted'.
>Thus when the code is run and the various rules are tested (above if statement is true), I would get the exception.

Hmmm...this is odd. If you are getting an exception within the rules object that says you can't access a Deleted row I'm not sure how that can happen if the Row state is not marked as deleted. Is it possible there are multiple data tables in your DataSet and the data you're checking in the rule object is different than the default DataTable?

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform