title: Creating a label inside Gridview Cell from VB
body: <p>I have some Code in VB that is looping through a gridview's rows and is checking the values of a certain collumn, I have written some code inside the if statement that creates a clickable label inside the cell for when the cell is "", I have already written a bit of code that could create my label but I'm not too sure how it would create it inside row.Cells(8)</p>
  
  <p>I was wondering if could get some assistance with how I should be doing this?...</p>
  
  <p>Here's my Code:</p>
  
  <pre><code>            For i As Integer = 0 To GridView1.Rows.Count - 1
  Dim row = GridView1.Rows(i)
  
  Dim rowHeaderCell = row.Cells(8)
              If rowHeaderCell.Text = "&amp;nbsp;" Then
  
  Dim lbl As New Label
                  lbl.Size = New System.Drawing.Size(159, 23)
                  lbl.Location =
                  lbl.Text = "label text goes here"
                  Me.Controls.Add(lbl)
  
              End If
          Next
  </code></pre>
  
  <p>Thankyou in advance!</p>