OldValues Property
Collapse the table of content
Expand the table of content

ListViewUpdateEventArgs.OldValues Property


Gets a dictionary that contains the original values of the item to update.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public IOrderedDictionary OldValues { get; }

Property Value

Type: System.Collections.Specialized.IOrderedDictionary

The original values of the item to update.

Use the OldValues property (dictionary) to access the original values of the fields in the item to update. This dictionary contains all fields in the item except the key fields.


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

The OldValues property is automatically populated with the original values of all the fields in the item. A separate entry is added to the OldValues property for every field in the item.

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

.NET Framework
Available since 3.5
Return to top
© 2015 Microsoft