Get the last BUT One row in Data table

Hello,
i need to get the last but one row from a data table.
Any ideas Please!
Thank you

Hello @teyssir below should work for you
DataRow lastDr = dt.rows(dt.rows.count - 1)

Hi @teyssir - You need the count or entire row?

thank you ,
i need to print the content of that row

Log message = String.join(",",dt.rows(dt.rows.count - 1).ItemArray)

1 Like

i just need to read the value of thatt specific row

this works!
thank you

1 Like

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