How to enable the column sorting in JDataGrid?
You should enable the following client property in JDataGrid: dataGrid.setModel(new DefaultColumnSorter(createModel())); dataGrid.putClientProperty(“JDataGrid.columnSortingEnabled”, Boolean.TRUE); dataGrid.putClientProperty(“JDataGrid.switchUnsortedOrderEnabled”, Boolean.TRUE); And you should use the default JTableHeader build-in JDataGrid.