# Dash AG-Grid: Header Checkbox Selection - Solution

**URL:** <https://community.plotly.com/t/dash-ag-grid-header-checkbox-selection-solution/74903>\
**Category:** Dash Python\
**Created:** [May 1, 2023, 9:08pm UTC](https://community.plotly.com/t/dash-ag-grid-header-checkbox-selection-solution/74903 "2023-05-01T21:08:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliza](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/eliza/32/31717_2.png) [@eliza](https://community.plotly.com/u/eliza)\
**Post date:** [May 1, 2023, 9:08pm UTC](https://community.plotly.com/t/dash-ag-grid-header-checkbox-selection-solution/74903/1 "2023-05-01T21:08:29Z")

</div>

Issue: `headerCheckboxSelection` is set to `True`, but the table is rendered with no checkbox in the Country header.

```auto
columnDefs = [
    {
        "field": "country",
        "rowGroup": True,
        "hide": True,
        "headerCheckboxSelection": True,
    },

```

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/e/5/e5d2c33fc9b5946af9b8d2eb69002a71d655634d.png)

Solution:` headerCheckboxSelection` should be in `dashGridOptions`

```auto
dashGridOptions = dict(
    autoGroupColumnDef={
        "minWidth": 250,
        "cellRenderer": "agGroupCellRenderer",
        "cellRendererParams": {
            "checkbox": True,
        },
        "headerCheckboxSelection": True,
    },
    groupMultiAutoColumn=True,
    rowSelection="multiple",
    groupSelectsChildren=True,
    suppressRowClickSelection=True,
    groupDisplayType="multipleColumns",
    suppressRowHoverHighlight=True,
)

```

 ![Screen Shot 2023-05-01 at 5.04.51 PM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/9/5/95ee36345abfb913ebd06fc546b26060b5d1914d.png)
