Accessing text in a hyperlink field
I have a GridView with a hyperlink column. I want to modify the text in the hyperlink field in OnRowDataBound. However, I can't read the text using:
protected void GridView1_OnRowDataBound(object sender, GridViewRowEventArgs e){
string TempText = (string)e.Row.Cells[5].Text;
}
A null string is returned.
|