Infragistics2.Win.v8.1
DataValue Property
See Also 
Infragistics.Win Namespace > ValueListItem Class : DataValue Property

Returns or sets the data value associated with this item.

Syntax

Visual Basic (Declaration) 
Public Property DataValue As Object
C# 
public object DataValue {get; set;}

Remarks

This property, in conjunction with the DisplayText property, provides a way to store one value in the datasource while displaying another. In this manner, the user can be presented with a list of states, for example, and if he or she selects "New York," the value "NY" could be stored in the data source. In this example, "New York" is the value of the DisplayText property while "NY" is the value of the DataValue property.

When data from the data source matches the data value for a particular valuelistitem, that valuelistitem's display text will be shown in the cell.

Values for this property do not have to be unique within the ValueListItems collection.

The Find method can be invoked to search for a valuelistitem by its data value.

See Also