Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error in saving after deleting records.
Message
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01169712
Message ID:
01169714
Views:
7
>After deleting records then trying to save dataset, it gives me this error:
>
>Deleted row information cannot be accessed through the row.
>
>Here is the code using Infragistics UltraGrid control:
>
>RowsCollection allRows;
>allRows = this.grdDepartments.Rows;
>if (allRows.Count > 0) {
>   for (int i = 0; i < allRows.Count; i++) {
>       UltraGridRow row = allRows[i];
>       if ((bool)row.Cells["DeleteMarker"].Value == true)
>           row.Delete(false);
>   }
>}
>
>this.oMscDepartments.SaveDataSet();
>
>The deletion process have no problem because the error only show up when SaveDataSet() method is called.
>
>Please assist...

Nevermind folks. I already figured it out! I declared a wrong primary key in the business object.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform