---
title: Rowspan/Merge Rows
description: "The **Rowspan** feature enables numerous cells of conjoining rows to be merged into a single row. Merge rows in a data table easily in Ninja Tables. Let's dive into this simple guide to learn how to use this feature in…"
url: "https://ninjatables.com/docs/rowspan/"
updated: "2025-06-02"
category: Advanced Mode (Classic Table Builder) / Customized Settings
---

# Rowspan/Merge Rows

The **Rowspan** feature enables numerous cells of conjoining rows to be merged into a single row. Merge rows in a data table easily in Ninja Tables.

Let's dive into this simple guide to learn how to use this feature in your table.

## Merge Table Rows

- First, go to the table where you want to apply this feature. Then go to the **Custom CSS/JS** option of the table.

- Copy and paste the code from this **[file](https://gist.github.com/reachkamrul/e8c1818cbe88daa1da9502d440b0d0c9)** into the **Custom Javascript** option.

- Don't forget to click on the **Save Custom Javascript** button.

![](https://ninjatables.com/wp-content/uploads/2022/09/customcssJS-scaled.webp)

- Now, go to the table column where you want to combine two rows and click the settings button of that column.

![](https://ninjatables.com/wp-content/uploads/2022/09/gender-scaled.webp)

A pop-up will arrive, select the **Advanced Settings** and type **''combine''** into the **Extra Classes** field. Click the **Update** button to save the changes.

![](https://ninjatables.com/wp-content/uploads/2022/09/Combine.webp)

- Now you'll see the rows containing similar data in cells will merge into one big data cell automatically.

![](https://ninjatables.com/wp-content/uploads/2022/09/Combine-result-scaled.webp)

This is how you can create a **Rowspan** in your Ninja Tables and merge table rows.
