title: Setting the textarea in a GridView after DataBind
body: <p>How can I set the textarea of the gridview which has a Datatable:</p>
  
  <pre><code>&lt;asp:GridView ID="gvTemplateFields" runat="server" AutoGenerateColumns="false"&gt;
      &lt;Columns&gt;
          &lt;asp:TemplateField HeaderText="Risk"&gt;
              &lt;ItemTemplate&gt;
                  &lt;textarea id="Risk"
                      cols="20" rows="2"
                      runat="server"
                      style="width: 99%"&gt;
                  &lt;/textarea&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
      &lt;/Columns&gt;
      &lt;EmptyDataTemplate&gt;No off-site links found.&lt;/EmptyDataTemplate&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>The data binding:</p>
  
  <pre><code>DataTable templateFields = SWMSField.GetTemplateFields(TemplateId);
  gvTemplateFields.DataSource = templateFields;
  gvTemplateFields.DataBind();
  </code></pre>