DataGridViewHelper Lookup Method CleanCode C# Libraries v1.2.03 API
Gets a value in one column of a OnlineDataGridView row having a specified value in another column.

Namespace: CleanCode.Forms
Assembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax

public static string Lookup(
	DataGridView dataGridView,
	string keyFieldName,
	string targetFieldName,
	string keyValue
)

Return Value

Cell value from specified column in the located row.
Remarks

Similar to GetMatchingRowIndex(DataGridView, String, String), Lookup identifies the row containing a specific value, but rather than returning the index of that row, it returns the corresponding value in a second column.
See Also