When I addItem to the underling dataprovider of a datagrid, the datagrid will automatically scroll to the new added row. Anyone can advise me how to prevent the scroll happening, that is, how to keep the focus on the current row without scrolling to new row. Thanks.
I didn't think that was default behavior. Anyway, you can save the
verticalScrollPosition and restore it later.
That's correct. Thank you.