How can I get the value of a gridview cell? I have been trying the code below with no luck.
gridview
protected void grvExpirations_RowDataBound(object
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if(e.Row.RowType == DataControlRowType.DataRow) { string LinkText = (string)System.Web.UI.DataBinder.Eval(e.Row.DataItem, "RegistrationLinkText"); if(LinkText == "text") { e.Row.Cells[3].Text = "your text"; } } }