I am currently doing the data binding:
<asp:TemplateField HeaderText="Priority" SortExpression="priority">
<ItemTemplate>
<asp:Label Visible="true" runat="server" ID="priorityLabel" Text='<%# bind("numberTemplatePriority") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
However, I would like to get this value first: <%# bind(“numberTemplatePriority”) %>, which will bring an integer, an according to that value, I want to show an equivalent string. For example: if it is number 4, I want to show “Very Important”.
I wouldn’t like to modify the sql query since it is used in other parts of the application.
The GridView datasource is a dataset and “numberTemplatePriority” is one of its columns.
Thanks in advance.
Try,