HyperLinkField and RowDataBound in ASP.NET
Views (103)
To access the HyperLinkField control with the RowDataBound event of the GridView, we can use the following code (refer the column cell)
protected void gridCaseMember_RowDataBound(object sender, GridViewRowEventArgs e){
if (e.Row.RowType == DataControlRowType.DataRow){
HyperLink myLink = (HyperLink)e.Row.Cells[0].Controls[0];
myLink.NavigateUrl = “http://www.bing.com”; }
}
http://forums.asp.net/t/1142271.aspx
Hope it helps !
Filed under: ASP.NET Tagged: ASP.NET
This was originally posted here.

Like
Report
*This post is locked for comments