Take top n Rows from datatable until a blank row using Linq ( TakeWhile| Any )

We are gonna see how to take top n rows from a datatable in UiPath until a blank row using Linq method.

TakeWhile| Any| ItemArray | Trim | Lambda expression | copytodatatable