# Default row selection in Dash

**URL:** <https://community.plotly.com/t/default-row-selection-in-dash/28042>\
**Category:** Dash Python\
**Created:** [August 30, 2019, 7:06pm UTC](https://community.plotly.com/t/default-row-selection-in-dash/28042 "2019-08-30T19:06:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcoolkarni](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@mcoolkarni](https://community.plotly.com/u/mcoolkarni)\
**Post date:** [August 30, 2019, 7:06pm UTC](https://community.plotly.com/t/default-row-selection-in-dash/28042/1 "2019-08-30T19:06:47Z")

</div>

My dash app has a table which has checkboxes for selection. I want to know if there is any functionality that by default some rows will be selected and then the user can select/deselect any rows as per his wish?

---

<div class="post-metadata">

**Author:** ![chriddyp](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/chriddyp/32/16855_2.png) [@chriddyp](https://community.plotly.com/u/chriddyp)\
**Post date:** [August 30, 2019, 9:04pm UTC](https://community.plotly.com/t/default-row-selection-in-dash/28042/2 "2019-08-30T21:04:23Z")

</div>

Have you tried initializing the property that represents selected rows to something? Instead of just listening to it via a callback?

---

<div class="post-metadata">

**Author:** ![mcoolkarni](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@mcoolkarni](https://community.plotly.com/u/mcoolkarni)\
**Post date:** [September 4, 2019, 5:30pm UTC](https://community.plotly.com/t/default-row-selection-in-dash/28042/3 "2019-09-04T17:30:35Z")

</div>

Yes! But I am not sure if I should directly initialize the rows to the selected\_rows or should it be the indices?
