Code example for GridView

Methods: setSelection, getCount