title: VB.NET Grid view with variable button text
body: <p>How can I make the text of a button in a Gridview change depending on the values in the gridview</p>
  
  <p>For example, in the code below, how can I set the button text to YOUNG for rows where the age is below 40 and OLD for rows above or equal to 40</p>
  
  <pre><code>&lt;asp:GridView ID="GV_DataByGroupAct" runat="server" AutoGenerateColumns="False"&gt;
      &lt;Columns&gt;
          &lt;asp:BoundField DataField="Name" HeaderText="Name" /&gt;
          &lt;asp:BoundField DataField="Age" HeaderText="Age" /&gt;
          &lt;asp:BoundField DataField="Hight" HeaderText="Hight" /&gt;
          &lt;asp:ButtonField Text="Young/Old" /&gt;
      &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>Thanks</p>