added gridpageradapter sample code