Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ImmediateDelete problem
Message
 
To
26/07/2005 12:38:53
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brazil
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01035954
Message ID:
01036072
Views:
10
Eugenio,

>When I set ImmediateDelete to false (I don't rows immediately deleted from the database), the application reports the error:
>
> "Deleted row information cannot be accessed through the row."

If you set this property to false, your DataTables may contain deleted rows. If you try to access information in these rows you will receive this exception.

To avoid this exception, first check if a row's RowState property is set to Deleted before trying to access values in that row.

For example, in C#:
if (this.DataRow.RowState != DataRowState.Deleted)
{
	// Perform processing
}
And in VB .NET:
If Me.DataRow.RowState <> DataRowState.Deleted Then
    ' Perform processing
End If
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
Next
Reply
Map
View

Click here to load this message in the networking platform