Unable to bind in asp.net grid Template Column
<p>I am having trouble accessing the data field. I receive the error: Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.</p>

<p>I can get the value but using &lt;%# getOpenJobs((string)Eval("ParentPart")) %> but I need to use it in the if to display a certian picture if it passes the condition. Is there a better way to do this or am i just missing something simple?</p>

<pre><code>               &lt;telerik:GridTemplateColumn UniqueName="hasOpenJobs" HeaderText=""&gt;
                &lt;ItemTemplate&gt;
                        &lt;% if (getOpenJobs((string)Eval("ParentPart")) &gt; 1)
                           { %&gt;
                            &lt;img src="../images/job-icon.gif" alt="Open Jobs" /&gt;
                         &lt;%} %&gt;
                &lt;/ItemTemplate&gt;
            &lt;/telerik:GridTemplateColumn&gt;
</code></pre>
