If it is boolean, simply try this.
Your comparison is for string types, not for boolean.
I really missed this part when I found problem at first.
For j = 0 To dtans.Rows.Count - 1
If dtans.Rows(j).Equals(foundRows) Then
iRowIndex = j
is array of
. What you are trying to is to equate