title: Display repeater data horizontally
body: <p>In continuation to my last question, I was suggested to use Repeater for displaying data fetched from SQL Db in horizontal layout.
  <a href="https://stackoverflow.com/questions/25447351/asp-net-c-sharp-customized-gridview/25458682#25458682">https://stackoverflow.com/questions/25447351/asp-net-c-sharp-customized-gridview/25458682#25458682</a></p>
  
  <p>As per suggestion I implemented a repeater control. The data was displayed in horizontal layout but only second column fetched from the DB.</p>
  
  <p>How to get the first column too:</p>
  
  <pre><code>&lt;asp:Repeater ID="RepDetails" runat="server"&gt;
  
  
     &lt;HeaderTemplate&gt;
           &lt;asp:Literal ID="litRowStart" runat="server"&gt;&lt;/asp:Literal&gt;
              &lt;td&gt;
                  &lt;asp:Label ID="lblExpID" runat="server" Text='&lt;%#Eval("Exp_ID") %&gt;' Font-Bold="true" /&gt;
              &lt;/td&gt;
              &lt;asp:Literal ID="litRowEnd" runat="server"&gt;&lt;/asp:Literal&gt;
        &lt;/HeaderTemplate&gt;
  
  
          &lt;ItemTemplate&gt;
              &lt;asp:Literal ID="litRowStart1" runat="server"&gt;&lt;/asp:Literal&gt;
              &lt;td&gt;
                  &lt;asp:Label ID="lblExpAmt" runat="server" Text='&lt;%#Eval("Amt_Allocated") %&gt;' Font-Bold="true" /&gt;
              &lt;/td&gt;
              &lt;asp:Literal ID="litRowEnd1" runat="server"&gt;&lt;/asp:Literal&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:Repeater&gt;
  </code></pre>