web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :

HyperLinkField and RowDataBound in ASP.NET

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

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.

Comments

*This post is locked for comments