 <p>Open a new Fragment when a gridView is clicked and then pass the position from the bundle parameters. Then in NewFragment show the listview and the data from database.</p> <pre><code>gridview.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) { NextFragment nextFrag= new NextFragment(); Bundle bundle = new Bundle(); bundle.putInt("POSITION",position); this.getFragmentManager().beginTransaction() .replace(R.id.Layout_container, nextFrag,TAG_FRAGMENT) .addToBackStack(null) .commit(); } }); </code></pre> <p>In the NextFragment get the reference of listView and then update the data from database using proper adapter.</p>