I need to scroll a DataGrid so a specific row is not only visible, but centralised in the view port. The ensureCellIsIsVisible() method is not enough for this particualr case, I need not only the cell , but the 3 above and below it to be visible.
Any clues as to the best route to go to acheive this?
Totally untested, but if you know which index should be centered, you could try setting the datagrid's selectedIndex three times:
dg.selectedIndex = target - 3;
dg.selectedIndex = target + 3;
dg.selectedIndex = target;
Sorry miss read post