How to remove top 'n' number of datarows from a data table

Hi all,

How to remove the top nā€™ number of datarow from datatable .

similar to the thread attached below which is csv :

Remove rows for csv

@rameespk23

Welcome to our UiPath community.

Try below expression.

      NewDT = InputDT.AsEnumerable().Skip(10).CopyToDataTable

The above expression removes top 10 rows from the DataTable.

Hi @rameespk23

Please try this,

dt.asenumerable.skip(2).copytodatatable

Thanks

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.