Delete rows in excel dynamically when column has null value

@Vishwanth_Raya

Have look here:

As you need the opposite use this statement

(From d In dtData.AsEnumerable
Where Not d.ItemArray.Any(Function (x) If(isNothing(x), True, String.IsNullOrWhiteSpace(x.toString.trim)))
Select d).toList

2 Likes