I am trying to add onfocus to my textbox that is in a gridview. No matter which textbox I click in that row, the divs become visible in the first cell only
Code:
TextBox tb = (TextBox)e.Row.FindControl("costTB"); if (e.Row.RowType == DataControlRowType.DataRow) { tb.Attributes.Add("onfocus", "Visible(this)"); tb.Attributes.Add("onblur", "Invisible(this)"); }
Comment