Visual Basic: DataCombo/DataList Controls

MatchedWithList Property

See Also   Example   Applies To

Returns True if the current content of the BoundText property matches one of the records in the list portion of the control.

Syntax

object.MatchedWithList

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Return Values

The MatchedWithList property return values are:

Value Description
True The content of the BoundText property matches one of the records in the list.
False The contents of the BoundText property does not match any of the records in the list.

Remarks

When you enter a value in the text portion of the DataCombo control, the MatchedWithList property is set to True if the value entered is one of the items shown in the list.  Moving the Data control specified by the DataSource property of the DataCombo or DataList control also sets the MatchedWithList property to True if the BoundText value matches one of the records in the list. In this case, the record is highlighted.

Data Type

Boolean