Hi David,
Could you give a little more explenation? Are you using a widget to display DataTables? (for example this one: https://github.com/Itvisors/mendix-DataTables?).
Are you able to display the data using a DataGrid?
I would suggest to create an object in order to populate your DataTable.