DataNavigatorFindStringExact(String, String, Int32) Method

Finds the first item after the given index whose given data member matches the given string. The search is not case-sensitive.

Definition

Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public int FindStringExact(
	string member,
	string key,
	int startIndex
)

Parameters

member  String
The member in the data source to search for the string value
key  String
The string for which to search
startIndex  Int32
The zero-based index of the item before the first item to be searched. Set to -1 to search from the beginning of the list.

Return Value

Int32
The zero-based index of the first item found. Returns -1 if no match is found.

Exceptions

ArgumentOutOfRangeExceptionThis is thrown if the start index value is not within the bounds of the list and it is not -1 or if the specified member could not be found in the data source.
ArgumentNullExceptionThis is thrown if the member name or the item to find is null.

See Also