Check data table row value "No row found"

Data table name is “Dependenttable” now I have to check whether its row value is " No row found" so move to then part other than if any value is available move to else part.

Hi @Parul_Yadav ,

You can do it in IF condition:

Dependenttable.Rows.Count=0

No I have used that but not working because one row is always available value of that row is “NO Row Found” so Need to check on the basis of value

image

@Parul_Yadav ,

ok, got it…you can use following in IF condition:

Dependenttable.Rows(0)(0).toString.Contains("No rows found")

1 Like

Thank you for the solution.

1 Like

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