Andrew, I think you described your problem incorrectly.
Weicco, what I *think* he wants is how to attach some sort of onMouseOver code to his Anchor tags inside his gridview at runtime based on a conditional.
Andrew, what you should do is handel the RowDataBound event of your girdview, something like this:
protected void gv_RowDataBound(object sender, GridViewRowEventArgs e)
if (e.Row.RowType == DataControlRowType.DataRow)
LinkButton lb = (LinkButton)e.Row.FindControl("lb1");
if(<somecondition> == true)
Obviously i am using onMouseOver as an example that could be changed to anything.
Read this if you want to know how to get a correct reply for your question:
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7