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


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,



1 Like

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