Live Chat Icon For mobile
Live Chat Icon

How to use a HyperlinkColumn for a DataGrid

Platform: ASP.NET| Category: DataGrid

<asp:DataGrid id='DataGrid1' AutoGenerateColumns='False' runat='server'>
<Columns>
	<asp:HyperLinkColumn HeaderText='ID' DataNavigateUrlField='ID' 
	DataNavigateUrlFormatString='page2.aspx?id={0}' 
	DataTextField='ID'></asp:HyperLinkColumn>
	</Columns>
</asp:DataGrid>

Share with

Share on twitter
Share on facebook
Share on linkedin