Basically there are 3 columns in an excel sheet.
‘column 1’ and ‘column 2’ contain data. Column 3 contains some blank rows.
I need to filter “Col3” and use them for further process.
Tried with “Filter datatable activity” . Did not go well.
geting the col3 nonblanks
(From d in YourDataTableVar.AsEnumerable
Where Not (isNothing(d(“Col3”)) OrElse String.IsNullorEmpty(d(“Col3”).ToString.trim))
Select d).CopyToDataTable
geting the col3 blanks
(From d in YourDataTableVar.AsEnumerable
Where isNothing(d(“Col3”)) OrElse String.IsNullorEmpty(d(“Col3”).toString.trim)
Select d).CopyToDataTable
Logic you gave works fine as filter.
Its filtering blank values properly, but the thing is , its not removing the rest of the data.
I mean,
finally after applying logic, “Columm 3” is filtering by blank values and displayed at top of sheet, Rest of the data is appending.
I dont need that . How do I remove those rows?