title: Nested Gridview in Repeater control
body: <p>I have a gridview control nested within a repeater control.</p>
  
  <hr>
  
  <p>The repeater control is databound on pageload and in the itemdatabound event
  I look for the gridview control </p>
  
  <p>If e.Item.ItemType = ListItemType.Item Then
      Dim gvw As GridView = DirectCast(e.Item.Controls(3), GridView)
      gvw.DataSource = GetData()
      gvw.DataBind()
  End If</p>
  
  <p>After all this happens my page is displaying the repeater controls data
  and data in the gridview but the problem is only alternate gridviews have data
  i.e. row 1, 3, 5... in repeater control has grid that is databound
  but rows 2, 4, 6... does not display data</p>
  
  <p>markup is - just an example</p>
  
  <p><code>&lt;repeater&gt;</code><br>
  <code>&lt;itemtemplate&gt;</code><br>
  <code>&lt;table&gt;</code><br>
  <code>&lt;tr&gt;</code><br>
  <code>&lt;td&gt;</code><br>
  <code>&lt;gridview /&gt;</code><br>
  <code>&lt;/td&gt;</code><br>
  <code>&lt;/tr&gt;</code><br>
  <code>&lt;tr&gt;</code><br>
  <code>&lt;td&gt;</code><br>
  <code>&lt;label Text='&lt;%# Eval("some_data") %&gt;'</code><br>
  <code>&lt;/td&gt;</code><br>
  <code>&lt;/tr&gt;</code><br>
  <code>&lt;/table&gt;</code><br>
  <code>&lt;/itemtemplate&gt;</code><br>
  <code>&lt;/repeater&gt;</code></p>
  
  <p>again the above markup is just an example and it is complete</p>
  
  <p>I think I'm doing something seriously wrong.</p>