Reorder columns

Tags: #<Tag:0x00007efc72ee84a8> #<Tag:0x00007efc72ee8318>

hi, i want to display my columns in a certain order (left to right). How are these columns ordered initially? (coming from the database, they’re not organized).

Thanks,
Joe

Hi @merlin2049er

You can use columns option to define the data order. If your data object is the array of arrays you can do it like here: https://handsontable.com/docs/javascript-data-grid/binding-to-data/#array-of-arrays-with-a-selective-display-of-columns and if it’a an array of objects, it can be defined like here: https://handsontable.com/docs/javascript-data-grid/binding-to-data/#array-of-objects-with-column-mapping