title: Adding a row to a gridview programmatically VB
body: <p>VS 2013, VB. ASP.NET</p>
  
  <p>I have a gridview on my page.</p>
  
  <pre><code>                     &lt;asp:GridView ID="gvSteam" runat="server" AutoGenerateColumns="False" CssClass="gvSteam"&gt;
                              &lt;Columns&gt;
                                  &lt;asp:BoundField DataField="Generation" HeaderText="Steam Generation (Capacity)" ReadOnly="True" SortExpression="DisplayName" /&gt;
  
                                  &lt;asp:TemplateField HeaderText="TPH" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px"&gt;
                                      &lt;ItemTemplate&gt;
                                          &lt;asp:Label ID="lblValueEnergy" runat="server" Text='&lt;%# Format8888(Eval("Power")) %&gt;'&gt;&lt;/asp:Label&gt;
                                      &lt;/ItemTemplate&gt;
                                  &lt;/asp:TemplateField&gt;
  
  
                              &lt;/Columns&gt;
                              &lt;HeaderStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" /&gt;
                          &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>The code behind is as follows</p>
  
  <pre><code>        Dim Asset As New Assets
      Dim Allsteam As New List(Of Assets)
      Allsteam = Asset.GetSteamGenerated()
      gvSteam.DataSource = Allsteam
      gvSteam.DataBind()
  </code></pre>
  
  <p>I want to add a blank row into the gridview at a certain point (for example after row 4) and add some text to it.</p>
  
  <p>I can examples using data tables but I am using a gridview and would prefer to do it this way.  </p>