Quantcast
Channel: ASP.NET – Nishant Rana's Weblog
Viewing all articles
Browse latest Browse all 41

HyperLinkField and RowDataBound in ASP.NET

$
0
0

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 !


Viewing all articles
Browse latest Browse all 41

Trending Articles