title: How to Show Product in multiple Rows gridview asp.net
body: <p>how can I show product in Horizontal? max 3,4 rows in gridview asp.net like 2nd product(printed T Shirt) should come up with in line with 1st product</p>
  <p><img src="https://i.stack.imgur.com/oXnXB.png" alt="1" /></p>
  <p>currently i'm using this code and its showing product vertically</p>
  <pre><code> &lt;asp:GridView ID=&quot;gvUsers&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;False&quot;
           CssClass=&quot;table table-hover&quot;
           ShowFooter=&quot;True&quot;
           ShowHeaderWhenEmpty=&quot;True&quot; RepeatRows=&quot;3&quot;
           Height=&quot;293px&quot; Width=&quot;310px&quot; RepeatColumns=&quot;4&quot; RepeatDirection=&quot;Horizontal&quot;
           OnSelectedIndexChanged=&quot;gvUsers_SelectedIndexChanged&quot;
           OnRowDataBound=&quot;gvUsers_OnRowDataBound&quot;&gt;
  
           &lt;Columns&gt;
               &lt;asp:TemplateField Visible=&quot;true&quot;&gt;
                   &lt;ItemTemplate&gt;                     
                       &lt;table&gt;
                           &lt;tr&gt;
                               &lt;td style=&quot;text-align: center; background-color: #5f98f3&quot;&gt;
                                   &lt;asp:Label runat=&quot;server&quot; ID=&quot;lblproductid&quot; Visible=&quot;false&quot; Text='&lt;%#Eval(&quot;ProductID&quot;)%&gt;'&gt;&lt;/asp:Label&gt;
                                   &lt;asp:Label ID=&quot;Label1&quot; runat=&quot;server&quot; Text='&lt;%# Eval(&quot;ProductName&quot;) %&gt;' Font-Bold=&quot;True&quot;
                                       Font-Names=&quot;Open Sans Extrabold&quot; ForeColor=&quot;White&quot;&gt;&lt;/asp:Label&gt;
                               &lt;/td&gt;
                           &lt;/tr&gt;
                           &lt;tr&gt;
                               &lt;td style=&quot;text-align: center&quot;&gt;
                                   &lt;%-- &lt;asp:LinkButton runat=&quot;server&quot; ID=&quot;lbtnProductDetail&quot; OnClick=&quot;ProductDetail_click&quot;&gt;--%&gt;
                                   &lt;asp:Image ID=&quot;Image1&quot; runat=&quot;server&quot; BorderColor=&quot;#5F98F3&quot; BorderWidth=&quot;1px&quot;
                                       Height=&quot;279px&quot; Width=&quot;278px&quot; ImageUrl='&lt;%# Eval(&quot;ImagePath&quot;,&quot;{0}&quot;)%&gt;' /&gt;
                               &lt;/td&gt;
                           &lt;/tr&gt;
                        &lt;tr&gt;
                               &lt;td style=&quot;text-align: center; background-color: #5f98f3&quot;&gt;
                                   &lt;asp:Label ID=&quot;Label2&quot; runat=&quot;server&quot; Text=&quot;Price: Rs&quot; Font-Bold=&quot;True&quot;
                                       Font-Names=&quot;Arial&quot; ForeColor=&quot;White&quot; Style=&quot;text-align: center&quot;&gt;&lt;/asp:Label&gt;
                                   &lt;asp:Label ID=&quot;Label3&quot; runat=&quot;server&quot; Text='&lt;%# Eval(&quot;ActualPrice&quot;) %&gt;' Font-Bold=&quot;True&quot;
                                       Font-Names=&quot;Arial&quot; ForeColor=&quot;White&quot; Style=&quot;text-align: center&quot;&gt;&lt;/asp:Label&gt;
                               &lt;/td&gt;
                           &lt;/tr&gt;
                       &lt;/table&gt;
                   &lt;/ItemTemplate&gt;
               &lt;/asp:TemplateField&gt;
           &lt;/Columns&gt; 
       &lt;/asp:GridView&gt;     
  </code></pre>