How to get the value on a specific row by searching?
i.e., I have a gridview:
A B C
---------
1 2 3
2 3 4
3 4 5
Then, I want to get the “3” value from column ‘A‘. But I do not know the exactly row number because it can be randomly show. Fyi, in order to get the “3” value, you have to compare it to a variable. So, if the variable contains ‘2’, then I should find the ‘2’ value on the gridview.
How can I do that? Thank you very much..
You can check by looping the rows of gridview, see the below code
Note : The above code is a sample written on datagridview, you change the code to a gridview and check.