Tag to add a hyperlink column to the DataGrid - ASP.NET

What tag do you use to add a hyperlink column to the DataGrid?

<asp:HyperLinkColumn>

A column type for the DataGrid control that contains a hyperlink for each item in the column.

Example

<asp:DataGrid id="DataGrid1"
    BorderColor="blue"
    BorderWidth="1"
    GridLines="Both"
    AutoGenerateColumns="false"
    runat="server">

    <HeaderStyle BackColor="#ccc"/>

    <Columns>

    <asp:HyperLinkColumn
    HeaderText="Item List"
    DataNavigateUrlField="IntegerValue"
    DataNavigateUrlFormatString="detailspage.aspx?id={0}"
    DataTextField="PriceValue"
    DataTextFormatString="{0:c}"
    Target="_blank"/>
    </Columns>
</asp:DataGrid>
Where does VS.NET store Web application projects?
ASP.NET - Where does VS.NET store Web application projects? - Web application projects create a virtual folder for each project where all the files of the projects are stored....
Web application’s life cycle - ASP.NET
ASP.NET Web application’s life cycle - A Web application starts with the first request for a resource...
Class module and a code module - ASP.NET
ASP.NET - Class module and a code module - ....
Post your comment