title: Data binding in gridview column using eval
body: <p>I hava grid containing a column for displaying countrynames. I need to display value in that column as contrycode-first 10 letters of country name (in-India) .I tried it using Eval functions with in the item template:</p>
  
  <pre><code>&lt;asp:TemplateField&gt;
    &lt;ItemTemplate&gt;
        &lt;asp:Label ID="CountryNameLabe" runat="server" Text='&lt;%# Eval("CorporateAddressCountry").SubString(0,6) %&gt;' &gt;&lt;/asp:Label&gt;
    &lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>But it shows error.
  Can i use custom functions in eval?
  please help</p>