Hello Everyone,
I am trying to delete empty rows from DataTable - “DT” initialized as shown in below screenshot,
I have written code as below using LINQ Cast function,
(From row In DT
From col In DT.Columns.Cast(Of DataColumn)
Where Not String.IsNullOrEmpty(row(col).ToString)
Select row
).CopyToDataTable
But, this giving me error as,
Am i missing anything?