This documentation is archived and is not being maintained.

GridViewDeleteEventArgs::Values Property

Gets a dictionary of the non-key field name/value pairs for the row to delete.

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

public:
property IOrderedDictionary^ Values {
	IOrderedDictionary^ get ();
}

Property Value

Type: System.Collections.Specialized::IOrderedDictionary
A System.Collections.Specialized::IOrderedDictionary object that contains the non-key field name/value pairs of the row to delete.

The Values property is automatically populated with the name/value pairs of the non-key fields for the row. To determine the field name of an entry, use the DictionaryEntry::Key property of a System.Collections::DictionaryEntry object in the Values dictionary. To determine the value of an entry, use the DictionaryEntry::Value property.

NoteNote

The primary key field or fields are not included in this dictionary. To access the values of the primary key field or fields, use the Keys property.

The following example shows how to use the Values property to get the values of the non-key fields for the row to delete. The values are then written to a log file of deleted records.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: