---
title: "Grouping rows by common field values"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityview-pro/datatables/grouping-rows-by-common-field-values/"
---

In this article, we will show you how to group rows by common field values in DataTables.

**Start by enabling the "RowGroup" feature.** You can find this option by navigating to the View editor, scrolling down to the View Settings, and clicking on the "DataTables" tab on the left. After enabling RowGroup Tables, you will need to choose a field to use for row groupings, select the group position, and choose the group sort direction.

![Options to enable row grouping by field, select position, and direction](https://www.gravitykit.com/wp-content/uploads/2025/10/file-YOB14SrQK0.png)
*That's it! Now, the rows in your table will be grouped by common field values, just as the below screenshot shows (in this example, entries are grouped by category)*![A DataTables table containing rows that are grouped by their category](https://www.gravitykit.com/wp-content/uploads/2026/04/file-LnoPE2hPhy.png)
*RowGroup is not compatible with the "Scroller" setting enabled, and exported values will not be grouped. These are known limitations with DataTables*