title: why setting the HeaderText programatically won't work?
body: <p>Do any of you know why this won't work?</p>
  
  <pre><code>&lt;asp:BoundField HeaderText='&lt;%=Lang.GetString("ManCan_Descripcion")%&gt;' DataField="OcdObs" /&gt;
  </code></pre>
  
  <p>It's like the server is ignoring the &lt;%%> tags, the page gets rendered like this:</p>
  
  <pre><code>&lt;th scope="col"&gt;&lt;%=Lang.GetString("ManCan_Descripcion")%&gt;&lt;/th&gt;
  </code></pre>