GridViewUpdateEventArgs.OldValues Property
Assembly: System.Web (in system.web.dll)
/** @property */ public IOrderedDictionary get_OldValues ()
public function get OldValues () : IOrderedDictionary
Property Value
An System.Collections.Specialized.IOrderedDictionary object that contains the original values of the field name/value pairs in the row to update.Use the OldValues property (dictionary) to access the original values of the fields in the row to update. This dictionary contains all fields in the row, including the key fields.
Note |
|---|
| You can also access the key fields of the row by using the Keys property. To access the revised values of the non-key fields in the row, use the NewValues property. |
The 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 OldValues property for each field in the row.
To determine the field name of an entry, use the DictionaryEntry.Key property of a System.Collections.DictionaryEntry object contained in the OldValues dictionary. To determine the value of an entry, use the DictionaryEntry.Value property.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
GridViewUpdateEventArgs ClassGridViewUpdateEventArgs Members
System.Web.UI.WebControls Namespace
GridViewUpdateEventArgs.Keys Property
GridViewUpdateEventArgs.NewValues Property
GridViewUpdateEventArgs.Keys Property
GridViewUpdateEventArgs.OldValues Property
System.Collections.Specialized.IOrderedDictionary
DictionaryEntry.Key
DictionaryEntry.Value
Note