title: Working with GridView and ItemTemplates (ASP.net/C#)
body: <p>I have a GridView that is populated via a database, inside the GridView tags I have:</p>
  
  <pre><code>&lt;Columns&gt;
    &lt;asp:TemplateField&gt;
      &lt;ItemTemplate&gt;&lt;asp:Panel ID="bar" runat="server" /&gt;&lt;/ItemTemplate&gt;
    &lt;/TemplateField&gt;
  &lt;/Columns&gt;
  </code></pre>
  
  <p>Now, I want to be able to (in the code) apply a width attribute to the "bar" panel for each row that is generated. How would I go about targeting those rows? The width attribute would be unique to each row depending on a value in the database for that row. </p>