PNRT
asked on
In VB.Net compare value from DataGridView and return other value
Hi experts. In VB.Net, 2008 and .Net 3.5. I have a datagridview with 6 columns. I need to iterate through column 1 and if a match is found to a string, then get the value from the same row but column 2. An example would be appreciated. Many Thanks in advance
ASKER
Hi, thanks for the reply. I checked the findcontrol message but cant seem to see the relevance. Im trying to get the cell value of one cell based on the contents of another cell. Sorry if I was not clear.
I was looking for something like
for each row in datagridview1
if cell in column 1 = x then same row, column 2 = y
next
But unfortunately, I wasnt able to get that right. Is the above not the right way to achive this.
I was looking for something like
for each row in datagridview1
if cell in column 1 = x then same row, column 2 = y
next
But unfortunately, I wasnt able to get that right. Is the above not the right way to achive this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hope you get what i mean.