国名を表示するための列を含むグリッドがあります。その列の値を contrycode-first 10 letters of country name (in-India) として表示する必要があります。項目テンプレートで Eval 関数を使用して試しました:
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="CountryNameLabe" runat="server" Text='<%# Eval("CorporateAddressCountry").SubString(0,6) %>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
しかし、それはエラーを示しています。eval でカスタム関数を使用できますか? 助けてください