Gengrid items selection

This code snippet shows how to use functions related to selecting gengrid items and finding out which items are already selected.