Gets a value in one column of a
DataGridView 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
Parameters
- dataGridView
- Type:
System.Windows.Forms DataGridView
The DataGridView.
- keyFieldName
- Type:
System String
Column name to search on.
- targetFieldName
- Type:
System String
Column from which to return a value.
- keyValue
- Type:
System String
Value in the keyFieldName column to match.
Return Value
Cell value from specified column in the located row.Remarks
See Also