Our Biggest Sale Is Here
Up to 70% Off
Get the Deal

How to group rows in a wpDataTables table

Say your staff table lists 100 employees with their name, gender, marital status and department. Visitors mostly want to see who works in which department, but the department repeats in every row. With row grouping, the Department column becomes a header row above each group: “Accounting” with its employees below it, then “Human Resources”, and so on. The grouping column itself is no longer shown as a column. You can group rows with Tabella AI or in the column settings.

How do I group rows with Tabella AI?

Open the table, click Ask Tabella AI and name the column to group by.

  1. Open the table. Go to wpDataTables → wpDataTables and click the table title.
  2. Ask Tabella AI. Click Ask Tabella AI and type, for example: Group the rows by Department.
  3. Check and save. Read the reply of Tabella AI and check the preview. Click Save Changes to keep the change, or Undo table changes to go back.

How do I group rows in the column settings?

Turn on Group column in the Display tab of the column you want to group by, and save the table.

  1. Open the table. Go to wpDataTables → wpDataTables and click the table title.
  2. Open the column settings. In the table preview, click the settings icon in the header of the column with the repeating values, for example Department.
  3. Turn on grouping. In the Display tab, under Group column, turn on Toggle column grouping.
  4. Save the table. Click Save Changes. The column disappears from the preview, and its values become group rows.

Because the column is no longer shown in the preview, open its settings later from Column List above the preview, for example to turn grouping off.

A wpDataTables employee table on the front end with the Name, Gender and Marital Status columns and the employees grouped under the Accounting group row
Rows grouped by department on the front end: (1) a group row with the department name, (2) the employees of that department.
  • Row grouping works only for tables without server-side processing.
  • You can group by one column per table.
  • Exports from the table tools don’t include the grouping.

What should I remember about row grouping?

Ask Tabella AI to group the rows by a column, or turn on Group column in that column’s Display tab. The column turns into group rows, so reach its settings through Column List. Grouping works only without server-side processing and doesn’t carry over to exports.

Wait, Before You Download!

To get your hands on wpDataTables Lite, please enter your email address below. We’ll send you a direct download link and keep you updated on existing features along with helpful tips and tricks!

By continuing, I accept Privacy Policy and T&C
Mail Box