title: Set CommandField Select Visibilty from aspx page
body: <p>I want to do something like this with a GridView:</p>
  
  <pre><code>&lt;asp:CommandField ShowSelectButton="True" Visible='&lt;%# return Eval("SC_TABLE") %&gt;' /&gt;
  </code></pre>
  
  <p>But that doesn't work, coming up with error:</p>
  
  <blockquote>
    <p>Databinding expressions are only
    supported on objects that have a
    DataBinding event.
    System.Web.UI.WebControls.CommandField
    does not have a DataBinding event.</p>
  </blockquote>
  
  <p>Is there anyway I can set the visibility from the aspx page?
  PS: SC_TABLE exists from the datasource, so nothing wrong from that part.</p>