title: GridView stretches the page width
body: <p>I have a gridview which has 13 columns. All the columns are bound field.
  When data is binded to the gridview, what happens the gridview stretches the page and the layout of the page becomes dull.
  The the page on which i have added the girdview is inherited from a mater page and the gridview is inside a panel. We work on percentage and not on pixel so i am facing this problem. If i use pixel to fix the width of the gridview it's working finr, but not in case of %.
  I have tried all the below - </p>
  
  <ol>
  <li>Remove the bound field and used template field and by fixing the itemstyle-width.</li>
  <li>Putting the girdview inside a table and applying the styles to set width, overflow and other required properties.</li>
  <li>Putting the gridview inside a div and applying the styles to set width, overflow and other required properties.</li>
  <li>Adding the gridview inside the panel and then setting the properties of the panel as above.</li>
  </ol>
  
  <p><strong>What works: -</strong> 
  When i fix the "tableLayout" properties of gridview to "fixed" it displays inside the range but all the text overlapped each other and hence all the things becomes useless.</p>
  
  <p>Please suggest me.</p>
  
  <p>Sample Code: - </p>
  
  <pre><code>&lt;table&gt;
              &lt;tr&gt;
                  &lt;td&gt;
              &lt;asp:Panel ID="pnlSearchResult" runat="server" Visible="false" Width="97%"&gt;
              &lt;div style="overflow:scroll;width:100%;table-layout:fixed"&gt;
                  &lt;asp:GridView ID="grdSearchResult" runat="server" SkinID="NewGridGS" EmptyDataText="No records found"
                  Width="99%"&gt;
                      &lt;Columns&gt;                            
                          &lt;asp:BoundField DataField="ECode" HeaderText="Code"/&gt;
                          &lt;asp:BoundField DataField="EName" HeaderText="Name" /&gt;
                          &lt;asp:BoundField DataField="Type" HeaderText="V Type" /&gt;
                          &lt;asp:BoundField DataField="VName" HeaderText="V Name" /&gt;
                          &lt;asp:BoundField DataField="PStartDate" HeaderText="P Start Date" /&gt;
                          &lt;asp:BoundField DataField="PEndDate" HeaderText="P End Date" /&gt;
                          &lt;asp:BoundField DataField="VStartDate" HeaderText="V Start Date" /&gt;
                          &lt;asp:BoundField DataField="VEndDate" HeaderText="V End Date" /&gt;
                          &lt;asp:BoundField DataField="OnSite" HeaderText="On Site" /&gt;
                          &lt;asp:BoundField DataField="PCode" HeaderText="P Code" /&gt;
                          &lt;asp:BoundField DataField="PSCode" HeaderText="PS Code" /&gt;
                          &lt;asp:BoundField DataField="AmountUSD" HeaderText="Amount (USD)" /&gt;
                          &lt;asp:BoundField DataField="AmountINR" HeaderText="Amount (INR)" /&gt;
                      &lt;/Columns&gt;
                  &lt;/asp:GridView&gt;
                  &lt;/div&gt;
              &lt;/asp:Panel&gt;
          &lt;/td&gt;
          &lt;/tr&gt;
          &lt;/table&gt;
  </code></pre>