# table grid save all rows button

**URL:** <https://forums.pega.com/t/table-grid-save-all-rows-button/1628>\
**Category:** User Experience\
**Tags:** experience-designer, 7-3-1, user-experience, senior-system-architect, lead-system-architect\
**Created:** [August 9, 2021, 6:55am UTC](https://forums.pega.com/t/table-grid-save-all-rows-button/1628 "2021-08-09T06:55:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sahul](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/sahul/32/22736_2.png) [@Sahul](https://forums.pega.com/u/Sahul)\
**Post date:** [August 9, 2021, 6:55am UTC](https://forums.pega.com/t/table-grid-save-all-rows-button/1628/1 "2021-08-09T06:55:20Z")

</div>

Hi All,

We are using Pega 7.3.1. We have a table **grid sourced by Report definition**. We can edit the rows of the grid.

1. We need to keep a **Save button on click** of that button **all the rows should be save to the data table**.

Please let me know How to achieve this.

1. Is it possible to only save the modified rows in the grid to data table?

Thanks in Advance

Sahhul

---

<div class="post-metadata">

**Author:** ![MatheswaranRavi](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/matheswaranravi/32/23306_2.png) [@MatheswaranRavi](https://forums.pega.com/u/MatheswaranRavi)\
**Post date:** [August 10, 2021, 1:06pm UTC](https://forums.pega.com/t/table-grid-save-all-rows-button/1628/2 "2021-08-10T13:06:10Z")

</div>

@Sahul On 7.3 you should use the SaveDataPage concept similar to 8.

Using ReportDefention for this scenario was not advisable. Please try to use the RD inside a DataPage and source for the grid.

This will be easy to capture the data edit. To implement have a button in UI with action “on click” perform the following actions.

1. Loop the Table Source (D\_DataPage.pxResults)

2. Inside loop use Property-set (or) Datatransform to get each row record with the step page of DataTableClass.

3. Try Obj-Save of each record with steppage as DataTable Class

“Save only the modified row” is possible by placing a flag at each row & on the edit of each row set the flag true. Loop the DataPage Results only if the flag is true.

The Data page should be Editable.

Hope This helps!

---

<div class="post-metadata">

**Author:** ![Sahul](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/sahul/32/22736_2.png) [@Sahul](https://forums.pega.com/u/Sahul)\
**Post date:** [August 20, 2021, 9:19am UTC](https://forums.pega.com/t/table-grid-save-all-rows-button/1628/3 "2021-08-20T09:19:42Z")

</div>

@MatheswaranRavi

Thank you so much for your reply this is really helpful and it working by following the approach you suggested.
