title: Im trying to make a Repeater table visible = false
body: <p>I have a document management system which creates a report showing people who own which document.  There are times where people have 0 documents and in that case I would like the repeater table for that person to not be visible.  I have looked around for a while and have not had much luck, maybe its because I am new or maybe its because I havent found my answer.</p>
  
  <p>I have repeaters nested inside repeaters but if the first repeater is not visible the rest should follow.</p>
  
  <p>aspx file
  
                      </p>
  
  <pre><code>                    &lt;h3&gt; &lt;%# DataBinder.Eval(Container.DataItem, "FullNm") %&gt;&lt;/h3&gt;
                      &lt;table ID="CollectorTable" runat="server" class="report-totals"&gt;
                          &lt;tr&gt;
                              &lt;th&gt;Total Collected:&lt;/th&gt;
                              &lt;td&gt;&lt;asp:Literal ID="CollectorTotalCollected" runat="server" /&gt;&lt;/td&gt;
  
                              &lt;td class="report-totals-spacer"&gt;&lt;/td&gt;
  
                              &lt;th&gt;Total Contacted:&lt;/th&gt;
                              &lt;td&gt;&lt;asp:Literal ID="CollectorTotalContacted" runat="server" /&gt;&lt;/td&gt;
  
                              &lt;td class="report-totals-spacer"&gt;&lt;/td&gt;
  
                              &lt;th&gt;&lt;/th&gt;
                              &lt;td&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                      &lt;/table&gt;
                 // etc....
  </code></pre>
  
  <p>Code Behind</p>
  
  <pre><code>        // ...pull totals
          Control CollectorRepeater = new Control();
          CollectorRepeater = (Control)e.Item.FindControl("CollectorRepeater");
          CollectorRepeater.Visible = false;
  
          Repeater collectorData = (Repeater)item.FindControl("CollectedTableRepeater");
          collectorData.DataSource = collectedDocuments;
          collectorData.DataBind();
  
          Repeater contactedData = (Repeater)item.FindControl("ContactedTableRepeater");
          contactedData.DataSource = contactedDocuments;
          contactedData.DataBind();
  </code></pre>