# DataGrid with checkbox for selected row

**URL:** <https://forum.radzen.com/t/datagrid-with-checkbox-for-selected-row/4187>\
**Category:** Angular\
**Created:** [July 8, 2020, 10:27am UTC](https://forum.radzen.com/t/datagrid-with-checkbox-for-selected-row/4187 "2020-07-08T10:27:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcanavar](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mcanavar](https://forum.radzen.com/u/mcanavar)\
**Post date:** [July 8, 2020, 10:27am UTC](https://forum.radzen.com/t/datagrid-with-checkbox-for-selected-row/4187/1 "2020-07-08T10:27:13Z")

</div>

HI Team Radzen,

I Have a datagrid with checkbox in each row ( template) to be used as marker for a selected row.  
Also with the new update there is a select / deselect all rows checkbox in the Header of the datagrid.

I'm trying to ensure that when a row is "checked" and the datagrid is refreshed the checked rows are checked again .

How can I accomplish this

b.r.  
Mehmet

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [July 8, 2020, 11:45am UTC](https://forum.radzen.com/t/datagrid-with-checkbox-for-selected-row/4187/2 "2020-07-08T11:45:20Z")

</div>

You need to have a property part of your data item that will hold value if the row should be "checked" or not.

---

<div class="post-metadata">

**Author:** ![mcanavar](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mcanavar](https://forum.radzen.com/u/mcanavar)\
**Post date:** [July 8, 2020, 12:13pm UTC](https://forum.radzen.com/t/datagrid-with-checkbox-for-selected-row/4187/3 "2020-07-08T12:13:29Z")

</div>

Difficulty in this is where to compare the saved values , also this could be page 3 out of 5 where the refresh happens .

Struggling with these basics .
