How to change DataField of BoundField
<p>When using the <code>asp:boundfield</code>, can I call a C# function that return a string which corresponds to the column name instead of writing the column itself?</p>

<pre><code> &lt;asp:BoundField DataField="Notes" HeaderText="Notes"/&gt;
</code></pre>

<p>Instead of having <code>DataField="Notes"</code>, I want to have <code>DataField=FUNCTION_NAME</code>.</p>

<p>I tried using the following but it didn't work:</p>

<pre><code>DataField=&lt;% FUNCTION_NAME %&gt;
</code></pre>
