Excel in UI path

Hi ,

How to check the column is empty??




Hi @vikumars,

string ColumnName = “Column Name To be checked”

Boolean result = (From row in dt.Select()
Where Not String.IsNullOrEmpty(row(ColumnName).Tostring)
Select row).ToArray().Count > 0

If the above query returns True then the column contains some non empty/null values. False then it contains only null/empty values.

Note: There are many ways to find it.