How to get data from last row in data table

I am give an input data table with value

as below is the example of the datatable

Type value

A. 123

B. 345

C. 456

I need to move from bottom to up

First i need to get type C then need to get type B and so on.tge input datatable is dynamic here

Hi @sruthesanju I believe this will be of help How to reverse a DataTable? - Help - UiPath Community Forum

Hi @sruthesanju

Try with this expression

dtoutput = dtinput.AsEnumerable.Reverse. CopyToDataTable


1 Like

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