System.Web.UI.WebControls.GridViewUpdateEventArgs.OldValues Property

Gets a dictionary containing the original field name/value pairs in the row to update.

Syntax

public System.Collections.Specialized.IOrderedDictionary OldValues { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the GridViewUpdateEventArgs.OldValues property (dictionary) to access the original values of the fields in the row to update. This dictionary contains all fields in the row except the key fields. The key fields are defined in the GridView.DataKeyNames property of a System.Web.UI.WebControls.GridView control.

Note:

You can access the key fields of the row by using the GridViewUpdateEventArgs.Keys property. To access the revised values of the non-key fields in the row, use the GridViewUpdateEventArgs.NewValues property.

The GridViewUpdateEventArgs.OldValues property is automatically populated with the original values of all the field name/value pairs in the row. A separate entry is added to the GridViewUpdateEventArgs.OldValues property for each field in the row.

To determine the field name of an entry, use the DictionaryEntry.Key property of a DictionaryEntry object contained in the GridViewUpdateEventArgs.OldValues dictionary. To determine the value of an entry, use the DictionaryEntry.Value property.

Requirements

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