Getting started with the DataTables Layout
With the DataTables Layout, a View shows its entries in a table that visitors can sort and search without reloading the page. Buttons above the table can copy, export, or print the rows.
Note: The DataTables Layout is included with GravityView Pro and the GravityKit All Access Pass.
On a GravityView + Extensions (Legacy) license, DataTables is a separate plugin. About the “GravityView + Extensions (Legacy)” license shows how to install it.
If the separate DataTables plugin is still installed on your site, Moving from separate extensions to GravityView Pro explains how to remove it.
Video walkthrough #
Turning DataTables on or off #
DataTables is built into GravityView Pro, so there is nothing to install. To turn it off or back on:
- Go to Plugins and click Features in the GravityView Pro row.
- Click Turn off or Turn on in the DataTables row.

While the separate DataTables plugin is active, it runs instead of the built-in copy.
Creating a View with the DataTables Layout #
- Go to GravityKit, then New View.
- Enter a name for the View, and choose your form under Data Source.
- Under Choose a View Type, hover over DataTables Table and click Select.

The View editor opens with fields from your form already placed as table columns, under Visible Table Columns.
- Remove a column with the X on its right, or click Add Field to add one.

- Click Publish.
DataTables settings #
The table’s own options are on the DataTables tab of the Settings box, below the layout.

| Section | What it sets |
|---|---|
| Browser Cache | Save Table State keeps the table’s page and sort order after the page reloads. It is on for a new View. The Save Table State setting |
| Inline Edit | Refresh Table After Inline Edit. GravityEdit: Disable auto-refresh after inline edit in DataTables |
| Field Filters | Enable Field Filters adds a filter box to each column. The boxes show in the table’s footer, or in its header when Input Location is set to Header. DataTables Field Filters |
| Data Processing Mode | With Ajax (Server-side), the table asks the site for rows each time a visitor sorts or changes the page. With Preloaded (Client-side), the page loads every row at once, and sorting and paging happen in the browser. Data Processing Mode |
| Column Widths | For a column whose Percent Width is too narrow for its values, Widen the table and scroll sideways makes the table wider, and visitors scroll it sideways. Keep the column at its set width keeps the column narrow and breaks its values over several lines. Column widths and pinned columns |
| Buttons | Enable Buttons shows buttons above the table. A new View has Copy, CSV, and Print. Buttons |
| Scroller | Enable Scroller shows all the rows in one scrolling area, as tall as Table Height, in place of pages. Scroller |
| FixedHeader & FixedColumns | Enable FixedHeader keeps the column headings at the top of the screen while visitors scroll down the page. Enable FixedColumns keeps the first column in place while the table scrolls sideways. |
| Responsive | Enable Responsive Tables hides the columns that don’t fit the screen. Visitors click a row to see its hidden values under it. Responsive |
| Auto-Update | Enable Auto-Update refreshes the table’s rows without reloading the page, every Auto-Update Interval (In Minutes). A new View has 5 minutes. Auto-Update |
| RowGroup | Enable RowGroup Tables puts the rows under a heading row for each value of the field chosen in Choose a field to row group. Grouping rows |
Showing the table on your site #
Add the View to a page with the GravityView View block, as Embedding a View on a page or post shows. Visitors can sort the table by clicking a column heading and search it with the Search Bar.

A new View has Show only approved entries turned on in its View Settings tab. If the table is empty, Why View entries may not be showing up explains how to approve entries.