I am quite a newbie in C# and I am unable to find what's wrong in this code and to fix it:
The purpose is to detect each new line added programmatically to the dgv and work on it.
private void ExtractLeftArmValue()
String searchValue = "337";
int linefeeded = 1;
int row = -0;
string rowstring = row.ToString();
string linestring = linefeeded.ToString();
for (row = -1; row < dgvvNodes.Rows.Count ; row++)
if (dgvvNodes.Rows[row].Cells.Value.ToString().Equals(searchValue)) // error comes from that line
string testdata = dgvvNodes.Rows[row].Cells.Value.ToString();
linefeeded = linefeeded++;
I guess it is quite obvious but i've spent too many hours on that !
Can an expert help me ?