Gets the index of the
DataGridView row having
a specified value in a particular column (specified by index).
Namespace: CleanCode.Forms
Assembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax
public static int GetMatchingRowIndex( DataGridView dataGridView, int columnIndex, string value )
Parameters
- dataGridView
- Type:
System.Windows.Forms DataGridView
The DataGridView.
- columnIndex
- Type:
System Int32
Index of the column to search.
- value
- Type:
System String
The value to match.
Return Value
Matching row index, or -1 if not found.Remarks
See Also