ListViewUpdatedEventArgs::AffectedRows Property
.NET Framework (current version)
Gets the number of rows that were affected by the update operation.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Use the AffectedRows property to determine the number of rows that were affected by the update operation, as returned by the data source. Because typically only one item is updated, this property usually contains a value of 0 or 1.
Sometimes during the update operation an error can occur that does not raise an exception. In that case, the AffectedRows property can be used to verify that an item was updated.
The following example shows how to use the AffectedRows property to verify that an item was updated. This code example is part of a larger example provided for the ListViewUpdatedEventArgs class.
.NET Framework
Available since 3.5
Available since 3.5
Show: