how to get images in grid view from database and when image shows by clicking image it should go to detail list view for image detail.?