Gengrid item management

This code snippet demonstrates how to retrieve items from a gengrid: first, last, previous and next. It also shows hot to get index of an item and how to retrieve items count.