Hi All,
In my GridView I have a field that I converted to a Template Field. In EditItemTemplate I added a link button (lbDocumentDate) and trying to add some Java Script to it. I addedd the following code to the Grid View RowEditing event:
Dim myLinkButton As LinkButton
myLinkButton = grvFinanceReviewChecklist.Rows(e.NewEditIndex).Cells(5).FindControl("lbDocumentDate")
myLinkButton.Attributes.Add("onclick", "some java")
This code failes because lbDocumentDate is not found. Does anyone know why ?
Thanks,
Daniel