Add some new methods inside GridView and BaseAdapterWrapper. Also fix minor bug and simplify some code.