DataGrid loses scroll posistion

Hello guys,

I am having the below issue. I have a tab control and I want to render two pages there based on a property.
More specifically when I double click in Datagrid it render the second page when I return to first page (datagrid) the scroll starts from the begin.

I am using the below code: