Is it an option to revert the sort-order of the DataGrid2-datasource?
If not, try to find the DataGrid2 object, set focus on it, trigger the javascript-function. Though this might do it but still no scrolling to be seen:
export async function DataGrid21_ScrollDown() {
// BEGIN USER CODE
let wheelEvent = new WheelEvent('wheel', {
deltaY: 100,
deltaMode: WheelEvent.DOM_DELTA_PIXEL
});
var DG2 = document.querySelector("#mxui_widget_VerticalScrollContainer_0 div.mx-name-dataGrid21 div");
DG2.dispatchEvent(wheelEvent);
// END USER CODE
}
Selector works fine, but the event seems not to trigger.