GridView.scrollTo

void scrollTo(uint pos, gtk.types.ListScrollFlags flags, gtk.scroll_info.ScrollInfo scroll = null)

Scrolls to the item at the given position and performs the actions specified in flags.

This function works no matter if the gridview is shown or focused. If it isn't, then the changes will take effect once that happens.

Parameters

posposition of the item
flagsactions to perform
scrolldetails of how to perform the scroll operation or null to scroll into view