ListViewUpdateEventArgs::NewValues Property
Gets a dictionary that contains the revised values of the item to update.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Property Value
Type: System.Collections.Specialized::IOrderedDictionaryThe revised values of the item to update.
Use the NewValues property (dictionary) to access the values of the revised non-key fields in the item to update.
Note: |
|---|
The primary key field or fields are included in this dictionary if the primary key value or values are being updated. To access the original values of the primary key field or fields, use the Keys property. To access the original values of the non-key fields in the item, use the OldValues property. |
The NewValues property is automatically populated with the name/value pairs of the revised fields in the item. A separate entry is added to the NewValues property for every field in the item.
To determine the field name of an entry, use the DictionaryEntry::Key property of a DictionaryEntry object that is contained in the NewValues dictionary. To determine the value of an entry, use the DictionaryEntry::Value property.
The following example shows how to use the NewValues property to make sure that the user has supplied all values before the data source is updated. This code example is part of a larger example provided for the ListViewUpdateEventArgs class.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note: