title: how to group the layouttemplate in listview
body: <p>I know the way to group the item . but how to group the layouttemplate each 8 databound items ?</p>
  
  <p>here is the code </p>
  
  <pre><code>&lt;ul class="slides"&gt;
                  &lt;asp:ListView runat="server" ID="MyListView" OnItemDataBound="MyListView_ItemDataBound" GroupItemCount="2" &gt;
                      &lt;LayoutTemplate&gt;
                          &lt;li&gt;
                              &lt;asp:PlaceHolder runat="server" ID="groupPlaceHolder" /&gt;
                          &lt;/li&gt;
                      &lt;/LayoutTemplate&gt;
                      &lt;GroupTemplate&gt;
                          &lt;div class="gourptpl"&gt;
                              &lt;asp:PlaceHolder runat="server"  ID="itemPlaceHolder"/&gt;
                          &lt;/div&gt;
                      &lt;/GroupTemplate&gt;
                      &lt;GroupSeparatorTemplate&gt;
                          &lt;div class="sper"&gt;&lt;/div&gt;
                      &lt;/GroupSeparatorTemplate&gt;  
                      &lt;ItemTemplate&gt;
                          &lt;%-- The item template is used to render each of the rows of the DataTable that has been binded to the ListView control. --%&gt;
                          &lt;div class="ft-item"&gt;
                              &lt;span class="ft-image"&gt;
                                  &lt;asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click"&gt;
                                      &lt;asp:Label runat="server" ID="ButtonText" /&gt;
                                      &lt;asp:Image ID="Image1" runat="server" /&gt;
                                  &lt;/asp:LinkButton&gt;
                              &lt;/span&gt;
                          &lt;/div&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:ListView&gt;
                   &lt;/ul&gt;
  </code></pre>
  
  <p>All i want is to repeat the GroupTemplate each 2 items and the LayoutTemplate each 8 items .
  Thanks .</p>