title: ASP.NET Repeater: Is it possible to display on the first item one element, but not for the rest of the items?
body: <pre><code>&lt;asp:Repeater ID="Repeater_RatingQuestions_Individuals" runat="server"&gt;
                  &lt;ItemTemplate&gt;
                      &lt;asp:Label CssClass="bold center" ID="Label1" runat="server"     Text='&lt;%# DataBinder.Eval(Container.DataItem,"Question")%&gt;' /&gt;
                      &lt;asp:Repeater ID="Repeater_RatingAnswers_Individuals" runat="server" DataSource='&lt;%# DataBinder.Eval(Container.DataItem, "Answers") %&gt;'&gt;
                          &lt;HeaderTemplate&gt;
                              &lt;table cellpadding="5" cellspacing="8"&gt;
                          &lt;/HeaderTemplate&gt;
                          &lt;ItemTemplate&gt;
                              &lt;tr&gt;
                                  &lt;td&gt;
                                      &lt;asp:Label ID="Label3" runat="server" Text='&lt;%# DataBinder.Eval(Container.DataItem,"UserID")%&gt;' /&gt;
                                  &lt;/td&gt;
                                  &lt;td&gt;
                                      &lt;asp:Label ID="Label4" runat="server" Text='&lt;%# DataBinder.Eval(Container.DataItem, "Answer") %&gt;' /&gt;
                                  &lt;/td&gt;
                                  &lt;td&gt;
                                      &lt;asp:Label ID="Label2" runat="server" Text='&lt;%# DataBinder.Eval(Container.DataItem, "Value") %&gt;' /&gt;
                                  &lt;/td&gt;
                              &lt;/tr&gt;
                          &lt;/ItemTemplate&gt;
                          &lt;FooterTemplate&gt;
                              &lt;/table&gt;
                          &lt;/FooterTemplate&gt;
                      &lt;/asp:Repeater&gt;
                  &lt;/ItemTemplate&gt;
              &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>This is my repeater. I have 2 classes:</p>
  
  <pre><code>public class cQuestion
  {
      public string Question { get; set; }
      public List&lt;cAnswer&gt; Answers { get; set; }
  }
  public class cAnswer
  {
      public string Answer { get ; set; }
      public uint Value { get; set; }
      public string UserID { get; set; }
  }
  </code></pre>
  
  <p>Without having to creating some other generic list of an object, would it be possible to display for the first record the UserID, in the nested Repeater, but for the rest of them not show the UserID? If it's not possible then fine I'll just go with my alternate solutions. I just wanted to know if this is possible without having to add new properties or new classes.  Thanks in advance.</p>