If statement exact match in row

I have the following expression in an if-statement:
string.Join(“,”,row.ItemArray).Contains(FromPage.ToString)

Now the problem is that when I have a new value of “8” and there is for example “18” already in the table it gives true but I want false. How can I have an exact match?
Thanks

Hi,

string.Join(",",row.ItemArray) = FromPage.ToString

The following should work for exact matches.

Cheers

5 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.