Two GridView in Same Location
<p>I have two GridViews namely GridView1  and GridView2 .They are  in same Location and I declare a boolean variable namely flag. I want to do that when flag=false  ,  GridView1 is visible and GridView2 is invisible. When flag=true , GridView2 is visible and GridView1 is invisible. Here is my code.</p>

<pre><code>private bool flag=false;  
if(flag==false)  
{  
    GridView1.Visible=true;  
    GridView2.Visible=false;  
    flag=true;  
}  
else  
{
    GridView2.Visible=true; 
    GridView1.Visible=false;
    flag=false;  
}
</code></pre>

<p>In RunTime,
Though GridView2 become invisible, the space of it is appeared under GridView1. How could I do to show a Grid at one time .</p>

<p>With Regrads,</p>
