Find a C1ComboBoxItem by its Value property.

Namespace:  C1.Web.UI.Controls.C1ComboBox
Assembly:  C1.Web.UI.Controls.3 (in C1.Web.UI.Controls.3.dll)

Syntax

C#
public C1ComboBoxItem FindItemByValue(
	string value
)
Visual Basic (Declaration)
Public Function FindItemByValue ( _
	value As String _
) As C1ComboBoxItem

Parameters

value
Type: System..::..String
C1ComboBoxItem.Value used to match the item.

Return Value

The first matched item. If no match is found, null is returned.

Examples

Copy CodeC#
C1ComboBox comboBox = new C1ComboBox();
comboBox.Items.Add(new C1ComboBoxItem("text1","value1"));
comboBox.Items.Add(new C1ComboBoxItem("text2","value2"));
// the first item is found.
C1ComboBoxItem match = comboBox.FindItemByValue("value1");

See Also