# Checkbox to exclude/include data table column

**URL:** <https://community.plotly.com/t/checkbox-to-exclude-include-data-table-column/18789>\
**Category:** Dash Python\
**Created:** [January 30, 2019, 9:00am UTC](https://community.plotly.com/t/checkbox-to-exclude-include-data-table-column/18789 "2019-01-30T09:00:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![naarkhoo](https://avatars.discourse-cdn.com/v4/letter/n/dec6dc/32.png) [@naarkhoo](https://community.plotly.com/u/naarkhoo)\
**Post date:** [January 30, 2019, 9:00am UTC](https://community.plotly.com/t/checkbox-to-exclude-include-data-table-column/18789/1 "2019-01-30T09:00:06Z")

</div>

I would like to have a set of checkboxes which they determine what column in the datatabe should be displayed (through call back).

```
dt.DataTable(id='table_of_record',
                    columns=[{'name';i};
                    df.columns])
```

---

<div class="post-metadata">

**Author:** ![naarkhoo](https://avatars.discourse-cdn.com/v4/letter/n/dec6dc/32.png) [@naarkhoo](https://community.plotly.com/u/naarkhoo)\
**Post date:** [January 30, 2019, 9:26am UTC](https://community.plotly.com/t/checkbox-to-exclude-include-data-table-column/18789/2 "2019-01-30T09:26:06Z")

</div>

I used [Display tables in Dash](https://community.plotly.com/t/display-tables-in-dash/4707/5) - so the question is answered over there.
