Insert new row to the top of a DataTable?

Insert new row to the top of a DataTable?

pembertonthrockmorepembertonthrockmore Posts: 1Questions: 1Answers: 0

I'm using a data table to record a history of transactions in a game. I want the most recent records to show up first, such that every row that's added is added to the top of the table. Is there a straightforward way of doing this?

Thanks,
Pemberton

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    The easiest way would be to have a date field (even if it's invisible), for when it was created, and order by that.

    Colin

This discussion has been closed.