---
title: "Model-driven setup · Gantt docs · Ninth Forge"
url: https://ninthforge.com/docs/gantt/model-driven
description: "Show a Dataverse view or subgrid as a Gantt chart in a model-driven app, and map your columns."
---

# Model-driven setup

To use the Gantt in a model-driven app, add **Ninth Forge Gantt** as the component of a view (the whole table) or of a subgrid on a form (for example, a project’s tasks), then map your columns. Edits save straight to Dataverse with each user’s own permissions.

## What your table needs

| Column | Type | Required |
| --- | --- | --- |
| Start | Date only | Yes |
| End | Date only | Recommended. A task with a start but no end shows as a milestone (a diamond on its start date). |
| Progress | Whole number or decimal, 0–100 | No |
| Parent (phase) | Lookup to the **same** table | No. Gives phases that roll up from their children. |
| Predecessor | Lookup to the **same** table | No. One finish-to-start dependency per task. |
| Owner | Owner, any lookup, or text | No |
| Is milestone | Yes/No | No |
| Baseline start, Baseline end | Date only | No |

**Use the “Date only” behaviour for date columns.** Columns with “User local” behaviour can show a day early for users in time zones west of whoever saved the date.

## Add it to a view

1.  In [Power Apps](https://make.powerapps.com), open your solution, then your table, then **Views**. Open the view to show as a Gantt, for example “Active tasks”.
2.  Make sure the view includes every column you’ll map (start, end, parent and so on), and sorts the way you want rows ordered.
3.  Select **Components**, then **\+ Add a component**, then **Ninth Forge Gantt**. (In the classic view editor it’s **Custom Controls**, then **Add Control**.)
4.  In **Edit Ninth Forge Gantt**, map the columns under **Tasks** and set the options (see below). Under **Show component on**, tick **Web**, and **Mobile** and **Tablet** if you like. Select **Done**, then **Save**.
5.  Select **Save and publish**.

![The Edit Ninth Forge Gantt panel in the view designer: Start date mapped to Start (Date Only), End date to End, Progress to Progress, Parent (phase) to Parent and Predecessor to Predecessor.](/docs-media/gantt/model-driven-components.webp)

Open the app and pick the view: the rows show as a Gantt chart.

![The Launch plan view in a model-driven app shown as a Gantt chart by month: Discovery and Design phases with their tasks, dependency arrows and today’s line.](/docs-media/gantt/model-driven-view.webp)

## Add it to a form subgrid

Use this to show, for example, the tasks of the project on screen.

1.  Open the form in the form designer. To add a subgrid, go to **Component**, then select **Read Only Grid**. Tick **Show related records**, pick the related table, for example **Plan Tasks (Parent)**, and its view, then select **Done**. To use a subgrid that’s already there, select it.
    
2.  In the subgrid’s properties, open **Components** and select **\+ Component**.
    
3.  The first time, **Ninth Forge Gantt** isn’t in the list yet: select **Get more components**, tick **Ninth Forge Gantt**, then **Add**. Then pick **Ninth Forge Gantt** from the list.
    
4.  In **Add Ninth Forge Gantt**, the table and view come from the subgrid. Map **Start date** and the other columns, set the options (see below), then select **Done**.
    
5.  Select **Save and publish**.
    
    ![The Add Ninth Forge Gantt panel for a form subgrid: Table is Plan Tasks and View is Active Plan Tasks, both set by the subgrid, with Start date required and End date, Progress (0-100) and Parent (phase) to map.](/docs-media/gantt/model-driven-subgrid.webp)
    

## Map columns and settings

| Setting | What it does |
| --- | --- |
| Start date, End date, Progress (0-100), Parent (phase), Predecessor, Owner, Is milestone, Baseline start/end | The columns to read and write. Only Start date is required. Leave **Record ID**, **Parent ID** and **Predecessor ID** (canvas, text) empty: they’re for canvas apps. |
| Title | The chart’s name in its toolbar (default “Work plan”). |
| Default zoom | **Week**, **Month** or **Quarter**. |
| Theme | **Light** or **Dark**. |
| Accent colour (hex) | A hex colour such as `#0F766E` for bars and highlights. Empty uses Ninth Forge cobalt. Text on bars stays readable (4.5:1) whatever you pick. |
| Text size (%), Text sizes by role | Bigger or smaller text, 75 to 200. See [Properties](https://ninthforge.com/docs/gantt/properties#text-size). |
| Licence key | Your Ninth Forge Plan key. Leave it empty to use the **Ninth Forge licence keys** environment variable. If the Gantt still says “Unlicensed”, see [Help](https://ninthforge.com/docs/help#ninth-forge--unlicensed-shows). |
| Allow editing | Drag, resize, progress and linking. Users still need write access to the table. |
| Allow adding tasks | Shows “+ Add task” and the row menu. It opens the table’s quick create form. |
| Save mode | Leave on **Auto**. It saves directly in model-driven apps. |
| Grid columns | Columns beside the task name, e.g. `owner, progress, start, end, duration`. Empty shows owner and progress. Users can change it from the Columns menu. |
| Working week | **Mon to Fri** counts working days and snaps drags off weekends; **All days** counts every day. |
| Open records in | Where Enter or double-click opens a task: **Side panel** or **Full page**. |

## Adding tasks

“+ Add task”, Insert and the row menu open **your table’s quick create form**, prefilled with the parent and a start date. Create a quick create form for the table if it doesn’t have one, and turn on **Allow quick create** in the table’s properties. The chart refreshes when the form closes.

## Permissions

The Gantt uses the signed-in user’s Dataverse permissions. Without write access to the table, the chart is read-only for that user. Without create access, “+ Add task” is hidden.

Last updated 7 November 2026
