ListViewDeletedEventArgs::AffectedRows Property
Gets the number of rows that were affected by the delete operation.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Use the AffectedRows property to determine the number of items that were affected by the delete operation, as reported by the data source control. This property is typically used to determine whether the correct number of items were deleted in the following ways:
To verify that only a single item was deleted. Sometimes an incorrectly written delete statement can delete multiple items.
To verify that an item was deleted if an error occurs during the delete operation but no exception was raised.
To verify that an item was deleted when a data source control that supports optimistic concurrency (such as the SqlDataSource and ObjectDataSource controls) has its ConflictDetection property set to the ConflictOptions.CompareAllValues enumeration value. Under this setting, an item that has been modified by another user might not be deleted.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.