Find first row and last row

Hi there,

I want to create a datatable but however i wan to find the last row so i can read it and store it as datatable. With that i need values from a specific column the first and last row. How to achieve it?

Hi @mark_rajkumar1

Use Find First/Last Data Row activity

Regards,

@mark_rajkumar1

image

@mark_rajkumar1

firstValue = DT.AsEnumerable().First()(DT.Columns("ColumnName")).ToString()

lastValue = DT.AsEnumerable().Last()(DT.Columns("ColumnName")).ToString()

Regards,