Hi @ASOoOMA kayal, Welcome to Microsoft Q&A, you could try the following code to get what you wanted.
if ((row.Cells[0].Value != null && row.Cells[0].Value.ToString().Equals(searchValue)) || (row.Cells[2].Value != null && row.Cells[2].Value.ToString().Equals(searchValue)))
You didn't show your show_image
code.
From what I've read, you might be able to tell there's something wrong here.
In datagrideview.row.Cells start from 0. The 1 and 3 you searched for should be 0 and 2 here.
If you have anything to add, please comment below and I will continue to follow up.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.