# DataGridEditMode Multiple

**URL:** <https://forum.radzen.com/t/datagrideditmode-multiple/6310>\
**Category:** Blazor Server\
**Created:** [January 15, 2021, 8:21pm UTC](https://forum.radzen.com/t/datagrideditmode-multiple/6310 "2021-01-15T20:21:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![emdear](https://forum.radzen.com/user_avatar/forum.radzen.com/emdear/32/12087_2.png) [@emdear](https://forum.radzen.com/u/emdear)\
**Post date:** [January 15, 2021, 8:21pm UTC](https://forum.radzen.com/t/datagrideditmode-multiple/6310/1 "2021-01-15T20:21:08Z")

</div>

Hello Radzen Team,

I see in the documentation the property DataGridEditMode which has supported values of Single and Multiple. I have successfully followed the demo and gotten inline editing working for a single row, but was wondering if there are any examples or additional documentation for the DataGridEditMode.Multiple. Basically I'd like to be able to put an entire grid into edit mode and allow each row to be edited and then saved all at once.

Thanks in advance!

---

<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:** [January 16, 2021, 5:36am UTC](https://forum.radzen.com/t/datagrideditmode-multiple/6310/2 "2021-01-16T05:36:17Z")

</div>

Hi @emdear,

While putting multiple rows in edit mode is possible indeed saving them at once is not possible.

---

<div class="post-metadata">

**Author:** ![emdear](https://forum.radzen.com/user_avatar/forum.radzen.com/emdear/32/12087_2.png) [@emdear](https://forum.radzen.com/u/emdear)\
**Post date:** [January 16, 2021, 12:03pm UTC](https://forum.radzen.com/t/datagrideditmode-multiple/6310/3 "2021-01-16T12:03:21Z")

</div>

Thanks for the quick reply.

In order to put multiple rows into edit mode at once should I just loop the rows and call EditRow(row) for each, or is there another way I could/should accomplish that?

Thanks!

---

<div class="post-metadata">

**Author:** ![emdear](https://forum.radzen.com/user_avatar/forum.radzen.com/emdear/32/12087_2.png) [@emdear](https://forum.radzen.com/u/emdear)\
**Post date:** [January 26, 2021, 11:23pm UTC](https://forum.radzen.com/t/datagrideditmode-multiple/6310/4 "2021-01-26T23:23:11Z")

</div>

Hi Radzen Team,

Just wanted to follow up on if there is any information or guidance on how to utilize the DataGridEditMode.Multiple property.

Currently I am utilizing the RowRender event and setting the row to edit mode there, but not sure if that is the optimal way of utilizing multiple edit mode.

```auto
protected void RowRender(RowRenderEventArgs<Account> args)
    {
        accountGrid.EditRow(args.Data);
    }

```

Thanks!

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 27, 2021, 5:51am UTC](https://forum.radzen.com/t/datagrideditmode-multiple/6310/5 "2021-01-27T05:51:06Z")

</div>

The EditMode property just specifies whether to clear the last item in edit mode or to keep it. The developer is still responsible for invoking the EditRow method to put rows in edit mode.

---

<div class="post-metadata">

**Author:** ![rathapon](https://forum.radzen.com/user_avatar/forum.radzen.com/rathapon/32/7343_2.png) [@rathapon](https://forum.radzen.com/u/rathapon)\
**Post date:** [July 22, 2021, 7:22am UTC](https://forum.radzen.com/t/datagrideditmode-multiple/6310/6 "2021-07-22T07:22:28Z")

</div>

If cannot saving it at once. How to save all maybe loop save?

---

<div class="post-metadata">

**Author:** ![bobtnt](https://forum.radzen.com/user_avatar/forum.radzen.com/bobtnt/32/12852_2.png) [@bobtnt](https://forum.radzen.com/u/bobtnt)\
**Post date:** [March 15, 2023, 3:23pm UTC](https://forum.radzen.com/t/datagrideditmode-multiple/6310/7 "2023-03-15T15:23:06Z")

</div>

I used loop to save all rows and it's working. Not sure why this was not offered as a solution ..... am I missing something? Thanks

//foreach titem  
gridRef.UpdateRow(titem)

---

<div class="post-metadata">

**Author:** ![Micke](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/ecae2f/32.png) [@Micke](https://forum.radzen.com/u/Micke)\
**Post date:** [June 28, 2023, 8:24am UTC](https://forum.radzen.com/t/datagrideditmode-multiple/6310/8 "2023-06-28T08:24:28Z")

</div>

//foreach titem  
gridRef.UpdateRow(titem)

Could I have the whole method/code snippet by any chance? 🙂

---

<div class="post-metadata">

**Author:** ![kieuale](https://forum.radzen.com/letter_avatar_proxy/v4/letter/k/3d9bf3/32.png) [@kieuale](https://forum.radzen.com/u/kieuale)\
**Post date:** [September 20, 2023, 8:50pm UTC](https://forum.radzen.com/t/datagrideditmode-multiple/6310/9 "2023-09-20T20:50:48Z")

</div>

I am also looking for the same solution here. Need a way to put all rows into edit mode and allow it to save all at once. Or allow each row to be save automatically once it exit out without clicking on the save button on each row. Wondering how @bobtnt did it? If anyone have any code snippet on how its done, PLEASE POST. Thank you much.
