How do I check if only the first row values in my DataTable contain any empty/null values?


In my project, I am trying to check only the first row of the following datatable:

I want to check if any of the first row values are empty or null. My project specifically needs to look for the first row only and ignore the others.

Here is my current effort, but it is not working:

Any ideas?


Try below expression in IF activity.


If you want to check any values in the first row:

dt_People.Rows(0).ItemArray.Any(Function(x) String.IsNullOrEmpty(x.ToString))

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