I want to allow my users to download the data from a data table (all pages). I’ve played around with building CSV files and writing them to the filesystem. I generally understand how I’d build a file from the data in the DB.
My question is how to match up the columns and sort orders if they’ve modified them in the data table UI.
Is there a way to get the table column displayed in the data table, the order (left to right), and any sorts that have happened? I don’t see anything obvious, but I may have missed something.