GridViewDeleteEventArgs.Values Property

Note: This property is new in the .NET Framework version 2.0.

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

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

public:
property IOrderedDictionary^ Values {
	IOrderedDictionary^ get ();
}
/** @property */
public IOrderedDictionary get_Values ()

public function get Values () : IOrderedDictionary

Property Value

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

Use the Values property (dictionary) to access the values of the non-key fields in the row to delete.

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 Values property is automatically populated with the name/value pairs of the non-key fields in the row. A separate entry is added to the Keys property for each non-key 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 Values dictionary. To determine the value of an entry, use the DictionaryEntry.Value property.

The following example demonstrates how to use the Values property to access the values of the non-key fields in 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.

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.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: