DataGridViewHelper GetMatchingRowIndex Method (DataGridView, String, 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 name).

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

public static int GetMatchingRowIndex(
	DataGridView dataGridView,
	string columnName,
	string value
)

Return Value

Matching row index, or -1 if not found.
Remarks

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