title: GridView automatically re-sizing itself
body: <p>I have a GridView in asp that keeps re-sizing itself. Can i in some way fix the size of the GridView so it doesn't do that ? The GridView keeps shrinking itself although the data in it has the same length or is smaller</p>
  
  <p>my asp code:</p>
  
  <pre><code>    &lt;asp:GridView ID="Grid" runat="server" AllowPaging="True" PageSize="18" OnPageIndexChanging="Grid_PageIndexChanging"
              ForeColor="Black" GridLines="Both" Width="991px" Height="600px" RowStyle-HorizontalAlign="Center"
          BackColor="White" BorderColor="#999999" BorderWidth="1px" 
              AutoGenerateColumns="False" style="margin-left: 9px"&gt;
              &lt;Columns&gt;
                  &lt;asp:TemplateField HeaderText="RequestID"&gt;
                  &lt;ItemTemplate&gt;
                  &lt;a target = "_blank" href="www.danx/default?request=&lt;%# Eval("request")%&gt;"&gt;&lt;%# Eval("request")%&gt;&lt;/a&gt;
                  &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
                  &lt;asp:TemplateField HeaderText="Barcode"&gt;
                  &lt;ItemTemplate&gt;
                  &lt;a target = "_blank" href="www.danx/default?barcode=&lt;%# Eval("barcode")%&gt;"&gt;&lt;%# Eval("barcode")%&gt;&lt;/a&gt;
                  &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
                  &lt;asp:BoundField DataField="adrid" HeaderText="AdrID" SortExpression="AdrID" /&gt;
                  &lt;asp:BoundField DataField="name" HeaderText="Navn" SortExpression="Name" /&gt;
                  &lt;asp:BoundField DataField="street" HeaderText="Vej" SortExpression="Street" /&gt;
                  &lt;asp:BoundField DataField="houseno" HeaderText="Husnr" 
                      SortExpression="HouseNo" /&gt;
                  &lt;asp:BoundField DataField="postal" HeaderText="Postnr" 
                      SortExpression="Postal" /&gt;
                  &lt;asp:BoundField DataField="city" HeaderText="By" SortExpression="City" /&gt;
                  &lt;asp:BoundField DataField="country" HeaderText="Land" 
                      SortExpression="Country" /&gt;
                  &lt;asp:TemplateField HeaderText="Lokation"&gt;
                  &lt;ItemTemplate&gt;
                  &lt;a target = "_blank" href="https://maps.google.dk/maps?q=&lt;%# Eval("latitude")%&gt;,&lt;%# Eval("longitude")%&gt;"&gt;&lt;%# Eval("latitudetxt")%&gt;&lt;/a&gt;
                  &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
                  &lt;asp:BoundField DataField="date" HeaderText="ReceivedDate" 
                      SortExpression="ReceivedDate" /&gt;
  
              &lt;/Columns&gt;
              &lt;FooterStyle BackColor="#CCCCCC" /&gt;
  
  &lt;RowStyle HorizontalAlign="Center"&gt;&lt;/RowStyle&gt;
  
              &lt;SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" /&gt;
              &lt;PagerStyle BackColor="#999999" ForeColor="Blue" HorizontalAlign="Center" /&gt;
              &lt;HeaderStyle BackColor="DarkGray" Font-Bold="True" ForeColor="Black" /&gt;
              &lt;AlternatingRowStyle BackColor="LightGray" /&gt;
              &lt;SortedAscendingCellStyle BackColor="#F1F1F1" /&gt;
              &lt;SortedAscendingHeaderStyle BackColor="#808080" /&gt;
              &lt;SortedDescendingCellStyle BackColor="#CAC9C9" /&gt;
              &lt;SortedDescendingHeaderStyle BackColor="#383838" /&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>Can you help me please?</p>