How to check if datatable is empty or not?

@Sanket_Shinde1

A small correction

IsNothing(dt) OrElse dt.AsEnumerable.All(function(x) x.ItemArray.All(function(y) String.IsNullOrEmpty(y.ToString)))

cheers

2 Likes