title: make grid view auto scrollable
body: <p>I have a grid. I have a button down that if i click on that button it will add an empty row to that grid in which i will edit and save. I need to display a scroll bar so that when i click on that button it will add empty row in the end of grid with scroll bar at the end</p>
  
  <pre><code>&lt;div id="Div" runat="server" class="divFieldRow"&gt;           
           &lt;div&gt;
           &lt;center&gt;  
           &lt;div  style="overflow: auto; height: 150px"&gt;
                   &lt;asp:GridView ID="gvEventMechanic" runat="server" AutoGenerateColumns="False" PageSize="5"
                              GridLines="None" AllowSorting="true" BorderWidth="1"
                              BorderColor="Brown" AlternatingRowStyle-BackColor="Cyan" HeaderStyle-BackColor="ActiveCaption"
                              FooterStyle-BackColor="DimGray" EnableViewState="true" &gt;                         
                  &lt;Columns&gt;
                      &lt;asp:TemplateField&gt;                    
                          &lt;HeaderTemplate&gt;
                              Disable
                              &lt;/HeaderTemplate&gt;
                          &lt;ItemStyle HorizontalAlign="Center" /&gt;
                          &lt;ItemTemplate&gt;                           
                              &lt;asp:CheckBox ID="chkDelete" runat="server" AutoPostBack="true" OnCheckedChanged="cbDelete_OnCheckedChanged"&gt;&lt;/asp:CheckBox&gt;
                          &lt;/ItemTemplate&gt;
                      &lt;/asp:TemplateField&gt;
                      &lt;asp:TemplateField &gt;                     
                         &lt;HeaderTemplate&gt;Event&lt;/HeaderTemplate&gt;
                          &lt;ItemStyle HorizontalAlign="Center" /&gt;
                          &lt;ItemTemplate&gt;
                              &lt;asp:Label ID="lblDesc" Visible='&lt;%# ! IsInEditMode %&gt;' runat="server" Text='&lt;%# Eval("Description") %&gt;' /&gt;
                              &lt;asp:TextBox ID="txtDesc" Visible='&lt;%# IsInEditMode %&gt;' runat="server" Text='&lt;%#Eval("Description")%&gt;' MaxLength="255"&gt;
                              &lt;/asp:TextBox&gt;                                                        
                          &lt;/ItemTemplate&gt;
                      &lt;/asp:TemplateField&gt;
                   &lt;/Columns&gt;                
              &lt;/asp:GridView&gt;     
          &lt;/div&gt; 
       &lt;/center&gt;
    &lt;/div&gt; 
  </code></pre>