private static bool LoadVirtualizedRows(ContentPresenter content, int rowCount)
        {
            DataGrid dg;
            if (!content.TryFindChild<DataGrid>(out dg)) return false;
            if (dg == null) return false;
            if (dg.Items.Count == 0) return false;

            if (!dg.EnableRowVirtualization) return false;
            dg.EnableRowVirtualization = false;
            dg.EnableColumnVirtualization = false;
            VirtualizingPanel.SetIsVirtualizing(dg, false);

            for (int i = 0; i < dg.Items.Count; i++)
            {
                dg.ScrollIntoView(dg.Items[i]);
                if (i == rowCount) break;
            }
            dg.ScrollIntoView(dg.Items[0]);
            return true;
        }