System.Web.UI.WebControls.GridViewUpdatedEventArgs.AffectedRows Property

Gets the number of rows that were affected by the update operation.

Syntax

public int AffectedRows { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Because only one record is typically updated, this property usually contains a value of 0 or 1.

An error can occur during the update operation that does not raise an exception. You can use the GridViewUpdatedEventArgs.AffectedRows property to make sure that a record was updated.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0