I'm trying to match user input in TextBox1
to values of first column in a DataGridView
and if the value matched first column of a row, then return the value of second column in that row.
For example, I have these 2 rows of data:
DataGridView1.Rows.Add(new object[] { 80000f, 1.000f, 1.120f });
DataGridView1.Rows.Add(new object[] { 85000f, 1.044f, 1.158f });
If the user enters 80000 into TextBox1
I want to return 1.000
How can I do this?