DataGridViewHelper GetMatchingRowIndex Method (DataGridView, Int32, String)CleanCode C# Libraries v1.2.03 API
Gets the index of the OnlineDataGridView row having a specified value in a particular column (specified by index).

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

public static int GetMatchingRowIndex(
	DataGridView dataGridView,
	int columnIndex,
	string value

Return Value

Matching row index, or -1 if not found.

This method provides a way to quickly identify a particular row in a DataGridView.
See Also