TemplateField asp

0

I am using a TemplateField to be able to represent in a column of a gridview the name of an enumerator and not its numerical value, which is what I have in the database. What I can not do is make that column a HyperLinkField. How could I do it?

        <Columns>
            <asp:TemplateField HeaderText="Tipo">
                <ItemTemplate>
                    <%# Enum.GetName(typeof(BusinessLayer.enTipos), Convert.ToInt32(Eval("Tipo"))) %>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    
asked by Jaime Capilla 21.05.2018 в 08:17
source

0 answers