How do I Reverse a datatable?
Meaning, rows starting from say from 1 to n should become from n to 1!
How can this be achieved?
Thanks and regards,
Shreyas
How do I Reverse a datatable?
Meaning, rows starting from say from 1 to n should become from n to 1!
How can this be achieved?
Thanks and regards,
Shreyas
I had tried it but unfortunately it did not work out for me as it was throwing error in for each activity!
Oh. Okay. Can you upload your workflow?
@shreyasshete Try Like below it will work.
dt1 = dt.AsEnumerable.Reverse.CopyToDataTable
where dt and dt1 are datatable variables.
Sort DataTable also helps if any column can be arranged in descending order
You’re right
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.