Datagrid Inline Editing within tabs

I have a grid within a tab that has all rows as editable. If I switch tabs and go back to the grid the rows are no longer in an editable state, and I am also unable to put them in an editable state. Is there something I am doing wrong or is this a bug?

Not sure how you've put all rows in edit mode initially. Can you clarify?

I just looped through all the data on a button press and edited the rows.

foreach(var data in Grid.Data)
{
    Grid.EditRow(data)
}

This will not work since when you change tab Data property for the DataGrid will be set again and all state will be lost.

Thank you, I did no realize tabs contents were destroyed when not being rendered.

I added a Render event on the grid that changes the edit state of the rows based on certain conditions.